| commit | 812733cc963b2e1d96f6ad2cb2d441c6fe8e4a5b | [log] [tgz] | 
|---|---|---|
| author | Victor Zverovich <viz@fb.com> | Sun Oct 31 09:41:16 2021 -0700 | 
| committer | Victor Zverovich <viz@fb.com> | Sun Oct 31 09:41:16 2021 -0700 | 
| tree | 463838817dccdedd58680fa936dd00c481334253 | |
| parent | 028f22775202a6a94d2346a4f7f179978bf9626f [diff] | 
const qualify format function for systen_clock
diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 997bb2d..e3ec702 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h
@@ -1782,7 +1782,7 @@ template <typename FormatContext> auto format(std::chrono::time_point<std::chrono::system_clock> val, - FormatContext& ctx) -> decltype(ctx.out()) { + FormatContext& ctx) const -> decltype(ctx.out()) { return formatter<std::tm, Char>::format(localtime(val), ctx); }