From: Kefu Chai Date: Wed, 14 Dec 2022 11:10:54 +0000 (+0800) Subject: crimson/osd: include fmt/ranges.h X-Git-Tag: v18.1.0~648^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F49427%2Fhead;p=ceph.git 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 --- diff --git a/src/crimson/osd/object_context.cc b/src/crimson/osd/object_context.cc index 48e239ec9730..1ea701c229c1 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"