From 8d2277deb562d016acc721166831e68c92de68b0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 22 Nov 2022 11:33:32 +0800 Subject: [PATCH] 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 --- src/include/neorados/RADOS_Decodable.hpp | 2 +- src/tools/neorados.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/neorados/RADOS_Decodable.hpp b/src/include/neorados/RADOS_Decodable.hpp index 83d065b3f0b1..5e3a0d36eabb 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 24966d2aee5e..16eed9ba9ff7 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[]) -- 2.47.3