mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
Added const qualifier to stopwatch formatter to support c++20
This commit is contained in:
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…
Reference in New Issue
Block a user