0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Macros
fmt_formatters.h File Reference
#include <spdlog/fmt/fmt.h>

Go to the source code of this file.

Macros

#define MAKE_TO_STRING_FORMATTER(TYPE)
 

Macro Definition Documentation

◆ MAKE_TO_STRING_FORMATTER

#define MAKE_TO_STRING_FORMATTER (   TYPE)
Value:
namespace fmt { \
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.