]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: include fmt/ranges.h 49427/head
authorKefu Chai <tchaikov@gmail.com>
Wed, 14 Dec 2022 11:10:54 +0000 (19:10 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 14 Dec 2022 11:14:16 +0000 (19:14 +0800)
so we are able to format ss.clone_snaps, which is a
std::map<snapid_t, std::vector<snapid_t>>. before fmtlib v9,
fmtlib is able to fall back to the operator<<() to format the the types
with the operator<<() defined. but after fmtlib v9, we need to
explicitly define them for accessing the specialized formatter.

in this change, fmt/ranges.h is included so we can access the formatter
for std::map and std::vector.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/osd/object_context.cc

index 48e239ec9730c6474b6e48122c4a973440db498c..1ea701c229c15610fcd05ca4055cf836f4296193 100644 (file)
@@ -3,6 +3,8 @@
 
 #include "crimson/osd/object_context.h"
 
+#include <fmt/ranges.h>
+
 #include "common/Formatter.h"
 #include "crimson/common/config_proxy.h"