Added const qualifier to stopwatch formatter to support c++20

pull/2801/head
gabime 2 years ago
parent c3fa8f60e2
commit 3cd06a3d40

@ -61,7 +61,7 @@ template<>
struct formatter<spdlog::stopwatch> : formatter<double>
{
template<typename FormatContext>
auto format(const spdlog::stopwatch &sw, FormatContext &ctx) -> decltype(ctx.out())
auto format(const spdlog::stopwatch &sw, FormatContext &ctx) const -> decltype(ctx.out())
{
return formatter<double>::format(sw.elapsed().count(), ctx);
}

Loading…
Cancel
Save