You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2022/10/01 12:24:34 UTC

[logging-log4cxx] branch next_stable updated: Fix for versions of {fmt} less than 9

This is an automated email from the ASF dual-hosted git repository.

rmiddleton pushed a commit to branch next_stable
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/next_stable by this push:
     new e05e8cdc Fix for versions of {fmt} less than 9
e05e8cdc is described below

commit e05e8cdc32bed96a0397f1c3d54663d7f9b63d84
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Sat Oct 1 08:24:26 2022 -0400

    Fix for versions of {fmt} less than 9
---
 src/examples/cpp/format-string.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/examples/cpp/format-string.cpp b/src/examples/cpp/format-string.cpp
index cab349c1..19dafa37 100644
--- a/src/examples/cpp/format-string.cpp
+++ b/src/examples/cpp/format-string.cpp
@@ -34,7 +34,9 @@ std::ostream& operator<<( std::ostream& stream, const MyStruct& mystruct ){
 		stream << "[MyStruct x:" << mystruct.x << "]";
 		return stream;
 }
+#if FMT_VERSION >= (9 * 10000)
 template <> struct fmt::formatter<MyStruct> : ostream_formatter {};
+#endif
 
 int main()
 {