From cd553f625f2e30a157b57376d4f4b0c514348bd2 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 14 Dec 2022 19:09:49 +0800 Subject: [PATCH] crimson/os: specialize fmt::formater<> for lba_pin_list_t since fmt v9, fmt::formatter<> is not specialized for the types with operator<<(ostream&, ...) anymore. so we need to specialize it manually. in this change, fmt::formatter is defined so the tree can compile with fmt v9. Signed-off-by: Kefu Chai --- src/crimson/os/seastore/cached_extent.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index e7b85e7fcd61..29cfd687ae34 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -956,6 +956,7 @@ using lextent_list_t = addr_extent_list_base_t< } #if FMT_VERSION >= 90000 +template <> struct fmt::formatter : fmt::ostream_formatter {}; template <> struct fmt::formatter : fmt::ostream_formatter {}; template <> struct fmt::formatter : fmt::ostream_formatter {}; template <> struct fmt::formatter : fmt::ostream_formatter {}; -- 2.47.3