Michele Caini 6 years ago
parent
commit
4a8b2f826d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/entt/entity/registry.hpp

+ 4 - 4
src/entt/entity/registry.hpp

@@ -50,10 +50,10 @@ class basic_registry {
     struct pool_handler: storage<Entity, Component> {
     struct pool_handler: storage<Entity, Component> {
         std::size_t super{};
         std::size_t super{};
 
 
-        pool_handler() ENTT_NOEXCEPT = default;
-
-        pool_handler(const storage<Entity, Component> &other)
-            : storage<Entity, Component>{other}
+        template<typename... Args>
+        pool_handler(Args &&... args)
+            : storage<Entity, Component>{std::forward<Args>(args)...},
+              super{}
         {}
         {}
 
 
         auto on_construct() ENTT_NOEXCEPT {
         auto on_construct() ENTT_NOEXCEPT {