浏览代码

registry: delegating constructor

Michele Caini 3 年之前
父节点
当前提交
a355de8e97
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/entt/entity/registry.hpp

+ 1 - 5
src/entt/entity/registry.hpp

@@ -344,11 +344,7 @@ public:
      * @param count The number of pools to allocate memory for.
      * @param count The number of pools to allocate memory for.
      */
      */
     basic_registry(const size_type count)
     basic_registry(const size_type count)
-        : pools{},
-          groups{},
-          entities{},
-          free_list{tombstone},
-          vars{} {
+        : basic_registry{} {
         pools.reserve(count);
         pools.reserve(count);
     }
     }