From: Kefu Chai Date: Tue, 22 Nov 2022 03:33:32 +0000 (+0800) Subject: neorados: s/ostream_formatter/fmt::ostream_formatter/ X-Git-Tag: v19.0.0~1126^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8d2277deb562d016acc721166831e68c92de68b0;p=ceph.git neorados: s/ostream_formatter/fmt::ostream_formatter/ to ensure that the compiler is able to find ostream_formatter, even without `using namespace fmt` or `using fmt::ostream_formatter` or `using ostream_formatter = fmt::ostream_formatter` or equivalent type aliases. Signed-off-by: Kefu Chai --- diff --git a/src/include/neorados/RADOS_Decodable.hpp b/src/include/neorados/RADOS_Decodable.hpp index 83d065b3f0b..5e3a0d36eab 100644 --- a/src/include/neorados/RADOS_Decodable.hpp +++ b/src/include/neorados/RADOS_Decodable.hpp @@ -110,7 +110,7 @@ struct hash<::neorados::Entry> { } #if FMT_VERSION >= 90000 -template <> struct fmt::formatter : ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; #endif #endif // RADOS_DECODABLE_HPP diff --git a/src/tools/neorados.cc b/src/tools/neorados.cc index 24966d2aee5..16eed9ba9ff 100644 --- a/src/tools/neorados.cc +++ b/src/tools/neorados.cc @@ -294,7 +294,7 @@ const std::array commands = { }; #if FMT_VERSION >= 90000 -template <> struct fmt::formatter : ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; #endif // FMT_VERSION int main(int argc, char* argv[])