File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3267,8 +3267,11 @@ void _Range_formatter_format_as_sequence(const formatter<_Ty, _CharT>& _Underlyi
3267
3267
const basic_string_view<_CharT> _Separator, const basic_string_view<_CharT> _Opening_bracket,
3268
3268
const basic_string_view<_CharT> _Closing_bracket, _Range&& _Rng, _FormatContext& _Ctx) {
3269
3269
_Ctx.advance_to(_STD _Fmt_write(_Ctx.out(), _Opening_bracket));
3270
- bool _Separate = false;
3271
- for (auto&& _Elem : _Rng) {
3270
+ bool _Separate = false;
3271
+ auto _Iter = _RANGES begin(_Rng);
3272
+ const auto _Sent = _RANGES end(_Rng);
3273
+ for (; _Iter != _Sent; ++_Iter) {
3274
+ auto&& _Elem = *_Iter;
3272
3275
if (_Separate) {
3273
3276
_Ctx.advance_to(_STD _Fmt_write(_Ctx.out(), _Separator));
3274
3277
}
You can’t perform that action at this time.
0 commit comments