Ver Fonte

registry: get around an issue of gcc

Michele Caini há 5 anos atrás
pai
commit
1757dbc225
1 ficheiros alterados com 1 adições e 1 exclusões
  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)},