From d56af706d9f4c9416c3ea1e8597a473cf937d547 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 14 Dec 2022 19:10:54 +0800 Subject: [PATCH] crimson/osd: include fmt/ranges.h so we are able to format ss.clone_snaps, which is a std::map>. 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 --- src/crimson/osd/object_context.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crimson/osd/object_context.cc b/src/crimson/osd/object_context.cc index 48e239ec9730c..1ea701c229c15 100644 --- a/src/crimson/osd/object_context.cc +++ b/src/crimson/osd/object_context.cc @@ -3,6 +3,8 @@ #include "crimson/osd/object_context.h" +#include + #include "common/Formatter.h" #include "crimson/common/config_proxy.h" -- 2.39.5