Veethree D7 SDK
Loading...
Searching...
No Matches
fmt_wrapper.h
Go to the documentation of this file.
1
5#ifndef FMT_WRAPPER_H
6#define FMT_WRAPPER_H
7
8#include <fmt/core.h>
9#include <fmt/format.h>
10
11#include <utility>
12
13namespace vsdk::utils {
14
19
25template<typename... Args>
26void print(fmt::format_string<Args...> fmt, Args &&...args) noexcept
27{
28 try {
29 fmt::print(fmt, std::forward<Args>(args)...);
30 } catch (...) {} // NOLINT
31}
32
34
35} // namespace vsdk::utils
36
37#endif // FMT_WRAPPER_H
void print(fmt::format_string< Args... > fmt, Args &&...args) noexcept
Exception-safe fmt::print wrapper.
Definition fmt_wrapper.h:26
Any entities that belong to the utils library.