mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-05 02:55:21 +00:00
const qualify format function for systen_clock
This commit is contained in:
parent
028f227752
commit
812733cc96
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user