From 812733cc963b2e1d96f6ad2cb2d441c6fe8e4a5b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 31 Oct 2021 09:41:16 -0700 Subject: [PATCH] const qualify format function for systen_clock --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 997bb2d0..e3ec702d 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1782,7 +1782,7 @@ struct formatter, template auto format(std::chrono::time_point val, - FormatContext& ctx) -> decltype(ctx.out()) { + FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(localtime(val), ctx); }