]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crush/CrushLocation.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crush / CrushLocation.h
index 678135c2e42aa1bdfa0ef0fbf5a82cf44aad18fa..189d4f7882b16c690e5451a58c213221936502de 100644 (file)
@@ -7,11 +7,14 @@
 #include <iosfwd>
 #include <map>
 #include <string>
+#if FMT_VERSION >= 90000
+#include <fmt/ostream.h>
+#endif
 
 #include "common/ceph_mutex.h"
 #include "include/common_fwd.h"
 
-namespace TOPNSPC::crush {
+namespace ceph::crush {
 
 class CrushLocation {
 public:
@@ -34,4 +37,9 @@ private:
 
 std::ostream& operator<<(std::ostream& os, const CrushLocation& loc);
 }
+
+#if FMT_VERSION >= 90000
+template <> struct fmt::formatter<ceph::crush::CrushLocation> : fmt::ostream_formatter {};
+#endif
+
 #endif