Skip to content

Commit d525148

Browse files
committed
Simplify operator++
Similarly to the situation in f0dfff9, these checks were intended for when we supported library EB.
1 parent f0dfff9 commit d525148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/beman/utf_view/to_utf_view.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class exposition_only_to_utf_view_impl {
205205
{
206206
if (buf_index_ + 1 < buf_last_) {
207207
++buf_index_;
208-
} else if (buf_index_ + 1 == buf_last_) {
208+
} else {
209209
std::advance(base(), to_increment_);
210210
to_increment_ = 0;
211211
if (base() != end()) {
@@ -221,7 +221,7 @@ class exposition_only_to_utf_view_impl {
221221
{
222222
if (buf_index_ + 1 == buf_last_ && base() != end()) {
223223
read();
224-
} else if (buf_index_ + 1 <= buf_last_) {
224+
} else {
225225
++buf_index_;
226226
}
227227
}

0 commit comments

Comments
 (0)