From: Kefu Chai Date: Wed, 14 Dec 2022 11:09:49 +0000 (+0800) Subject: crimson/os: specialize fmt::formater<> for lba_pin_list_t X-Git-Tag: v18.1.0~648^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cd553f625f2e30a157b57376d4f4b0c514348bd2;p=ceph.git 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 --- 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 {};