diff --git a/include/fmt/base.h b/include/fmt/base.h index b4b0a68d..51286967 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2837,10 +2837,8 @@ FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx) -> decltype(ctx.begin()) { using char_type = typename ParseContext::char_type; using context = buffered_context; - using mapped_type = conditional_t< - mapped_type_constant::value != type::custom_type, - decltype(arg_mapper().map(std::declval())), - typename strip_named_arg::type>; + using mapped_type = + remove_cvref_t().map(std::declval()))>; #if defined(__cpp_if_constexpr) if constexpr (std::is_default_constructible< formatter>::value) {