mirror of
https://github.com/fmtlib/fmt.git
synced 2025-03-14 13:20:51 +00:00
Resolved warning C4127: conditional expression is constant (#3923)
This commit is contained in:
parent
4e8640ed90
commit
550437b29e
@ -2812,7 +2812,7 @@ template <typename T, typename Char, type TYPE> 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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user