From b15699aba964488d700475f9c161b1f08bbf9dab Mon Sep 17 00:00:00 2001 From: timsong-cpp Date: Fri, 18 Mar 2022 09:23:06 -0500 Subject: [PATCH] Issue #2816: also strip named-arg for the fallback formatter --- include/fmt/core.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 43bca2fbb050..106fd6fe8760 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2665,13 +2665,14 @@ FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx) -> decltype(ctx.begin()) { using char_type = typename ParseContext::char_type; using context = buffer_context; + using stripped_type = typename strip_named_arg::type; using mapped_type = conditional_t< mapped_type_constant::value != type::custom_type, decltype(arg_mapper().map(std::declval())), - typename strip_named_arg::type>; + stripped_type>; auto f = conditional_t::value, formatter, - fallback_formatter>(); + fallback_formatter>(); return f.parse(ctx); }