Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -3267,8 +3267,11 @@ void _Range_formatter_format_as_sequence(const formatter<_Ty, _CharT>& _Underlyi
const basic_string_view<_CharT> _Separator, const basic_string_view<_CharT> _Opening_bracket,
const basic_string_view<_CharT> _Closing_bracket, _Range&& _Rng, _FormatContext& _Ctx) {
_Ctx.advance_to(_STD _Fmt_write(_Ctx.out(), _Opening_bracket));
bool _Separate = false;
for (auto&& _Elem : _Rng) {
bool _Separate = false;
auto _Iter = _RANGES begin(_Rng);
const auto _Sent = _RANGES end(_Rng);
for (; _Iter != _Sent; ++_Iter) {
auto&& _Elem = *_Iter;
if (_Separate) {
_Ctx.advance_to(_STD _Fmt_write(_Ctx.out(), _Separator));
}
Expand Down