diff --git a/include/fmt/core.h b/include/fmt/core.h index f9e3b7d6..158a2d5a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2541,8 +2541,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 _;