diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2023-08-06 21:04:47 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2023-08-06 21:28:07 +0200 |
| commit | 45ac296544dc66f0a7b2002e1ad240bf04aaabd4 (patch) | |
| tree | 1e85960329245e7796bd4bb22516a5a93ba084c9 /source/lib/include | |
| parent | 26cebab9172c6f27e248fb1d296ce46bd6b81bb0 (diff) | |
| download | wanda-45ac296544dc66f0a7b2002e1ad240bf04aaabd4.tar.xz wanda-45ac296544dc66f0a7b2002e1ad240bf04aaabd4.zip | |
deps: update dependencies
Diffstat (limited to 'source/lib/include')
| -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 |
