diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index a17741379..2fdf33d04 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -50,10 +50,10 @@ class basic_registry { struct pool_handler: storage { std::size_t super{}; - pool_handler() ENTT_NOEXCEPT = default; - - pool_handler(const storage &other) - : storage{other} + template + pool_handler(Args &&... args) + : storage{std::forward(args)...}, + super{} {} auto on_construct() ENTT_NOEXCEPT {