Skip to content

Commit

Permalink
Resolved warning C4127: conditional expression is constant (#3967)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt77hias authored May 20, 2024
1 parent 028bffa commit 706eabd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fmt/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, '}'>{});
}
Expand Down

0 comments on commit 706eabd

Please sign in to comment.