Michele Caini %!s(int64=8) %!d(string=hai) anos
pai
achega
416286b9b8
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 1 1
      CMakeLists.txt
  2. 4 0
      src/component_pool.hpp

+ 1 - 1
CMakeLists.txt

@@ -106,7 +106,7 @@ endif(${GOOGLETEST_FOUND})
 
 
 file(
 file(
     GLOB_RECURSE PROJECT_FILES FOLLOW_SYMLINKS
     GLOB_RECURSE PROJECT_FILES FOLLOW_SYMLINKS
-    *.txt *.c *.cpp *.hpp *.h *.in *.cmake *.sh *.md AUTHORS LICENSE
+    *.txt *.c *.cpp *.hpp *.h *.in *.cmake *.sh *.md *.yml *.bat AUTHORS LICENSE
 )
 )
 
 
 add_custom_target(
 add_custom_target(

+ 4 - 0
src/component_pool.hpp

@@ -125,7 +125,11 @@ public:
     using entity_type = typename Pool<Component>::entity_type;
     using entity_type = typename Pool<Component>::entity_type;
 
 
     explicit ComponentPool(size_type dim = 4098) noexcept
     explicit ComponentPool(size_type dim = 4098) noexcept
+#ifdef WIN32
+        : pools(Pool<Component>{dim}, Pool<Components>{dim}...)
+#else
         : pools{Pool<Component>{dim}, Pool<Components>{dim}...}
         : pools{Pool<Component>{dim}, Pool<Components>{dim}...}
+#endif
     {
     {
         assert(!(dim < 0));
         assert(!(dim < 0));
     }
     }