Veethree D7 SDK
Loading...
Searching...
No Matches
src
utils
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
13
namespace
vsdk::utils
{
14
19
25
template
<
typename
... Args>
26
void
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
vsdk::utils::print
void print(fmt::format_string< Args... > fmt, Args &&...args) noexcept
Exception-safe fmt::print wrapper.
Definition
fmt_wrapper.h:26
vsdk::utils
Any entities that belong to the utils library.
Generated by
1.14.0