From 27358e6ab81dd987d49265de0ccff0e8ffcec1cb Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 21 Jan 2025 11:41:34 +0100 Subject: [PATCH] registry_storage_iterator: const correctness --- src/entt/entity/registry.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index ea729f2fc..532bd1fb5 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -64,7 +64,7 @@ public: } constexpr registry_storage_iterator operator++(int) noexcept { - registry_storage_iterator orig = *this; + const registry_storage_iterator orig = *this; return ++(*this), orig; } @@ -73,7 +73,7 @@ public: } constexpr registry_storage_iterator operator--(int) noexcept { - registry_storage_iterator orig = *this; + const registry_storage_iterator orig = *this; return operator--(), orig; }