diff --git a/include/fmt/base.h b/include/fmt/base.h index 90af295ce812..f46d7e470e6d 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2812,7 +2812,7 @@ template struct native_formatter { FMT_CONSTEXPR auto parse(ParseContext& ctx) -> const Char* { if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); - if (TYPE == type::char_type) check_char_specs(specs_); + if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end; }