From d525148f93fdb75c113b2f8c0acf427a304fefe1 Mon Sep 17 00:00:00 2001 From: Edward Nolan Date: Sat, 25 Oct 2025 13:46:24 -0400 Subject: [PATCH] Simplify operator++ Similarly to the situation in f0dfff97976d68401793600aab6256b38d3f1937, these checks were intended for when we supported library EB. --- include/beman/utf_view/to_utf_view.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/beman/utf_view/to_utf_view.hpp b/include/beman/utf_view/to_utf_view.hpp index d647287c..83ba5805 100644 --- a/include/beman/utf_view/to_utf_view.hpp +++ b/include/beman/utf_view/to_utf_view.hpp @@ -205,7 +205,7 @@ class exposition_only_to_utf_view_impl { { if (buf_index_ + 1 < buf_last_) { ++buf_index_; - } else if (buf_index_ + 1 == buf_last_) { + } else { std::advance(base(), to_increment_); to_increment_ = 0; if (base() != end()) { @@ -221,7 +221,7 @@ class exposition_only_to_utf_view_impl { { if (buf_index_ + 1 == buf_last_ && base() != end()) { read(); - } else if (buf_index_ + 1 <= buf_last_) { + } else { ++buf_index_; } }