#include <spdlog/fmt/fmt.h>
Go to the source code of this file.
◆ MAKE_TO_STRING_FORMATTER
#define MAKE_TO_STRING_FORMATTER |
( |
|
TYPE | ) |
|
Value:
template <> struct formatter<TYPE> : formatter<std::string> { \
template <typename FormatContext> \
auto format( \
const TYPE &level, FormatContext &ctx) -> decltype(ctx.out()) \
{ \
return ::fmt::format_to(ctx.out(), "{}", to_string(level)); \
} \
}; \
}
Definition at line 22 of file fmt_formatters.h.