Optimize range formatter

This commit is contained in:
Victor Zverovich 2024-06-23 06:51:46 -07:00
parent 7ae102bd66
commit 7f951f2502

View File

@ -533,6 +533,8 @@ struct formatter<
range_formatter<detail::uncvref_type<range_type>, Char> range_formatter_;
public:
using nonlocking = void;
FMT_CONSTEXPR formatter() {
if (detail::const_check(range_format_kind<R, Char>::value !=
range_format::set))