]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
neorados: s/ostream_formatter/fmt::ostream_formatter/ 48999/head
authorKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 03:33:32 +0000 (11:33 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 04:17:03 +0000 (12:17 +0800)
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 <tchaikov@gmail.com>
src/include/neorados/RADOS_Decodable.hpp
src/tools/neorados.cc

index 83d065b3f0b15cd4f66de4b4f16c890e6a359e1c..5e3a0d36eabb58340fa0076a8ff64425622a4274 100644 (file)
@@ -110,7 +110,7 @@ struct hash<::neorados::Entry> {
 }
 
 #if FMT_VERSION >= 90000
-template <> struct fmt::formatter<neorados::Entry> : ostream_formatter {};
+template <> struct fmt::formatter<neorados::Entry> : fmt::ostream_formatter {};
 #endif
 
 #endif // RADOS_DECODABLE_HPP
index 24966d2aee5e43e8e700a00b228230f91f13352c..16eed9ba9ff7f240a68557556e4c316596192f6e 100644 (file)
@@ -294,7 +294,7 @@ const std::array commands = {
 };
 
 #if FMT_VERSION >= 90000
-template <> struct fmt::formatter<boost::program_options::options_description> : ostream_formatter {};
+template <> struct fmt::formatter<boost::program_options::options_description> : fmt::ostream_formatter {};
 #endif // FMT_VERSION
 
 int main(int argc, char* argv[])