[COMMIT seastar master] Define formatters for some classes (fmt9)

0 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Sep 16, 2022, 1:37:07 AMSep 16
to seastar-dev@googlegroups.com, loong0
From: loong0 <long...@gmail.com>
Committer: Pavel Emelyanov <xe...@scylladb.com>
Branch: master

Define formatters for some classes (fmt9)

Continuation of 2975b612646

---
diff --git a/include/seastar/net/ethernet.hh b/include/seastar/net/ethernet.hh
--- a/include/seastar/net/ethernet.hh
+++ b/include/seastar/net/ethernet.hh
@@ -94,3 +94,7 @@ ethernet_address parse_ethernet_address(std::string addr);
}

}
+
+#if FMT_VERSION >= 90000
+template <> struct fmt::formatter<seastar::net::ethernet_address> : fmt::ostream_formatter {};
+#endif
diff --git a/tests/perf/perf_tests.cc b/tests/perf/perf_tests.cc
--- a/tests/perf/perf_tests.cc
+++ b/tests/perf/perf_tests.cc
@@ -41,6 +41,13 @@

#include <signal.h>

+#if FMT_VERSION >= 90000
+namespace perf_tests::internal {
+ struct duration;
+}
+template <> struct fmt::formatter<perf_tests::internal::duration> : fmt::ostream_formatter {};
+#endif
+
namespace perf_tests {
namespace internal {

Reply all
Reply to author
Forward
0 new messages