diff --git a/include/fmt/core.h b/include/fmt/core.h index 77c2d240..153b7aab 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2543,8 +2543,8 @@ FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx) decltype(arg_mapper().map(std::declval())), typename strip_named_arg::type>; #if defined(__cpp_if_constexpr) - if constexpr (std::is_default_constructible_v< - formatter>) { + if constexpr (std::is_default_constructible< + formatter>::value) { return formatter().parse(ctx); } else { type_is_unformattable_for _;