From a017bba0624e28a4861b1d6e46f6eb7d3a26be7f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 29 Aug 2024 18:11:17 -0700 Subject: [PATCH] Minor cleanup --- include/fmt/base.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) {