Browse Source

storage_iterator(s): const correctness

Michele Caini 1 year ago
parent
commit
5636304217
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/entt/entity/storage.hpp

+ 3 - 3
src/entt/entity/storage.hpp

@@ -57,7 +57,7 @@ public:
     }
 
     constexpr storage_iterator operator++(int) noexcept {
-        storage_iterator orig = *this;
+        const storage_iterator orig = *this;
         return ++(*this), orig;
     }
 
@@ -66,7 +66,7 @@ public:
     }
 
     constexpr storage_iterator operator--(int) noexcept {
-        storage_iterator orig = *this;
+        const storage_iterator orig = *this;
         return operator--(), orig;
     }
 
@@ -175,7 +175,7 @@ public:
     }
 
     constexpr extended_storage_iterator operator++(int) noexcept {
-        extended_storage_iterator orig = *this;
+        const extended_storage_iterator orig = *this;
         return ++(*this), orig;
     }