Skip to content

Commit

Permalink
<format>: Fix STL internal check when formatting empty strings (#4243)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanTLavavej authored Dec 7, 2023
1 parent c594563 commit ec7f7ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ public:

constexpr _Unicode_codepoint_iterator(const _CharT* _First_val, const _CharT* _Last_val) noexcept
: _First(_First_val), _Last(_Last_val) {
_Next = _Decode_utf(_First, _Last, _Val)._Next_ptr;
if (_First != _Last) {
_Next = _Decode_utf(_First, _Last, _Val)._Next_ptr;
}
}

constexpr _Unicode_codepoint_iterator() = default;
Expand Down

0 comments on commit ec7f7ba

Please sign in to comment.