diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 2d2de7eb2..8a1665fcf 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -53,12 +53,12 @@ public: constexpr storage_proxy_iterator() noexcept : it{} {} - constexpr storage_proxy_iterator(const It iter) noexcept + constexpr storage_proxy_iterator(It iter) noexcept : it{iter} {} template && std::is_constructible_v>> constexpr storage_proxy_iterator(const storage_proxy_iterator &other) noexcept - : it{other.it} {} + : storage_proxy_iterator{other.it} {} constexpr storage_proxy_iterator &operator++() noexcept { return ++it, *this; diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index c4fbf9b8a..9c009e124 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -56,8 +56,7 @@ public: template, typename = std::enable_if_t> constexpr storage_iterator(const storage_iterator> &other) noexcept - : packed{other.packed}, - offset{other.offset} {} + : storage_iterator{other.packed, other.offset} {} constexpr storage_iterator &operator++() noexcept { return --offset, *this;