Michele Caini 7 vuotta sitten
vanhempi
commit
54129cecc2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -1319,7 +1319,7 @@ public:
         other.pools.resize(pools.size());
         other.sighs.resize(pools.size());
 
-        if(sizeof...(Component)) {
+        if constexpr(sizeof...(Component)) {
             static_assert(std::conjunction_v<std::is_copy_constructible<Component>...>);
             ((other.pools[type<Component>()] = assure<Component>().clone()), ...);
             assert((other.pools[type<Component>()] && ...));