diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index ccffa645..c63b4f86 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -437,7 +437,6 @@ struct range_formatter< detail::has_fallback_formatter>>::value>> { private: detail::range_formatter_type underlying_; - bool custom_specs_ = false; basic_string_view separator_ = detail::string_literal{}; basic_string_view opening_bracket_ = detail::string_literal{}; @@ -473,7 +472,6 @@ struct range_formatter< if (it != end && *it != '}') { if (*it != ':') FMT_THROW(format_error("invalid format specifier")); - custom_specs_ = true; ++it; } else { detail::maybe_set_debug_format(underlying_, true);