From 522a290e5a208edbc88736a5f7865ffcea4f47b7 Mon Sep 17 00:00:00 2001 From: Stephen Webb Date: Tue, 13 Sep 2022 09:14:04 +1000 Subject: [PATCH] Prevent compilation error when compiling fmt example against fmt v9.0.0 (#127) --- src/examples/cpp/format-string.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/examples/cpp/format-string.cpp b/src/examples/cpp/format-string.cpp index b447b1ba0..cab349c19 100644 --- a/src/examples/cpp/format-string.cpp +++ b/src/examples/cpp/format-string.cpp @@ -34,6 +34,7 @@ std::ostream& operator<<( std::ostream& stream, const MyStruct& mystruct ){ stream << "[MyStruct x:" << mystruct.x << "]"; return stream; } +template <> struct fmt::formatter : ostream_formatter {}; int main() {