From 5206976f100133b78a317682e0bc26ee9bf4d2ff Mon Sep 17 00:00:00 2001 From: Anil Mahtani <929854+Anilm3@users.noreply.github.com> Date: Sat, 5 Oct 2024 22:49:17 +0100 Subject: [PATCH] Remove checks --- src/object_view.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/object_view.hpp b/src/object_view.hpp index 600d1b03..233d9315 100644 --- a/src/object_view.hpp +++ b/src/object_view.hpp @@ -230,16 +230,16 @@ class object_view { [[nodiscard]] std::size_t index() const { return static_cast(index_); } iterator &operator++() noexcept { - if (index_ < size_) { + //if (index_ < size_) { ++index_; - } + //} return *this; } iterator &operator--() noexcept { - if (index_ > 0) { + //if (index_ > 0) { --index_; - } + //} return *this; }