diff --git a/src/common/logging/log.h b/src/common/logging/log.h index b6a14972f4..096a441b83 100644 --- a/src/common/logging/log.h +++ b/src/common/logging/log.h @@ -16,10 +16,12 @@ // a generic formatter for enum classes (<= 32 bits) #if FMT_VERSION >= 80100 template -struct fmt::formatter, char>> : formatter { +struct fmt::formatter, char>> + : formatter> { template auto format(const T& value, FormatContext& ctx) -> decltype(ctx.out()) { - return fmt::formatter::format(static_cast(value), ctx); + return fmt::formatter>::format( + static_cast>(value), ctx); } }; #endif