Michele Caini %!s(int64=6) %!d(string=hai) anos
pai
achega
4a8b2f826d
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  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> {
         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 {