diff options
Diffstat (limited to 'source/lib/include/wanda/message.hpp')
| -rw-r--r-- | source/lib/include/wanda/message.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/lib/include/wanda/message.hpp b/source/lib/include/wanda/message.hpp index 866408f..0f3034c 100644 --- a/source/lib/include/wanda/message.hpp +++ b/source/lib/include/wanda/message.hpp @@ -11,6 +11,7 @@ #include <istream> #include <optional> #include <string> +#include <fmt/core.h> namespace wanda { @@ -80,4 +81,13 @@ namespace wanda } // namespace wanda +template<> +struct fmt::formatter<wanda::message> : fmt::formatter<std::string> +{ + auto format(wanda::message const & message, format_context & context) const + { + return formatter<string_view>::format(static_cast<std::string>(message), context); + } +}; + #endif
\ No newline at end of file |
