Skip to content

Commit

Permalink
Resolved warning C4127: conditional expression is constant
Browse files Browse the repository at this point in the history
  • Loading branch information
matt77hias committed May 20, 2024
1 parent 028bffa commit 5ada2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ struct formatter<

public:
FMT_CONSTEXPR formatter() {
if (range_format_kind<R, Char>::value != range_format::set) return;
if (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 5ada2ae

Please sign in to comment.