const qualify format function for systen_clock

This commit is contained in:
Victor Zverovich 2021-10-31 09:41:16 -07:00
parent 028f227752
commit 812733cc96

View File

@ -1782,7 +1782,7 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
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);
}