mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-15 15:13:22 +00:00
Resolved warning C4127: conditional expression is constant (#3967)
This commit is contained in:
parent
028bffa083
commit
706eabd5e5
@ -528,7 +528,9 @@ struct formatter<
|
||||
|
||||
public:
|
||||
FMT_CONSTEXPR formatter() {
|
||||
if (range_format_kind<R, Char>::value != range_format::set) return;
|
||||
if (detail::const_check(range_format_kind<R, Char>::value !=
|
||||
range_format::set))
|
||||
return;
|
||||
range_formatter_.set_brackets(detail::string_literal<Char, '{'>{},
|
||||
detail::string_literal<Char, '}'>{});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user