From: Kefu Chai Date: Fri, 16 Dec 2022 12:05:43 +0000 (+0800) Subject: osd/scrubber: mark fmt::formatter<..>::format() as const X-Git-Tag: v18.1.0~629^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=97839b342882d92a53a7b698663ccd54296c848c;p=ceph.git osd/scrubber: mark fmt::formatter<..>::format() as const as it should be const, and more importantly, it'd fail the build with fmtlib v9, as its caller(s) is marked as `const`. Signed-off-by: Kefu Chai --- diff --git a/src/osd/scrubber/scrub_backend.h b/src/osd/scrubber/scrub_backend.h index d2ff62f96fd95..3e644b241ff9f 100644 --- a/src/osd/scrubber/scrub_backend.h +++ b/src/osd/scrubber/scrub_backend.h @@ -544,7 +544,7 @@ struct fmt::formatter> { template auto format(const std::pair& x, - FormatContext& ctx) + FormatContext& ctx) const { return fmt::format_to(ctx.out(), "{{ {} - {} }}",