Просмотр исходного кода

registry: workaround for an issue of gcc7

Michele Caini 6 лет назад
Родитель
Сommit
7e5edad32b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -771,7 +771,7 @@ public:
     template<typename Component, typename... Func>
     [[deprecated("use registry::patch instead")]]
     auto replace(const entity_type entity, Func &&... func)
-    -> decltype((func(std::declval<Component &>()), ...), patch<Component>(entity, std::forward<Func>(func)...)) {
+    -> decltype((func(std::declval<Component &>()), ...), assign<Component>(entity)) {
         return patch<Component>(entity, std::forward<Func>(func)...);
     }