Skip to content

Commit

Permalink
registry_storage_iterator: const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jan 21, 2025
1 parent af193d8 commit 27358e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entt/entity/registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class registry_storage_iterator final {
}

constexpr registry_storage_iterator operator++(int) noexcept {
registry_storage_iterator orig = *this;
const registry_storage_iterator orig = *this;
return ++(*this), orig;
}

Expand All @@ -73,7 +73,7 @@ class registry_storage_iterator final {
}

constexpr registry_storage_iterator operator--(int) noexcept {
registry_storage_iterator orig = *this;
const registry_storage_iterator orig = *this;
return operator--(), orig;
}

Expand Down

0 comments on commit 27358e6

Please sign in to comment.