Explorar o código

registry: get around an issue of gcc

Michele Caini %!s(int64=5) %!d(string=hai) anos
pai
achega
1757dbc225
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -191,7 +191,7 @@ public:
      * @param other The instance to move from.
      */
     basic_registry(basic_registry &&other) ENTT_NOEXCEPT
-        : vars{std::move(other.vars)},
+        : vars(std::move(other.vars)), // we can't use {} here, thanks to GCC
           pools{std::move(other.pools)},
           groups{std::move(other.groups)},
           entities{std::move(other.entities)},