registry: workaround for an issue of gcc7

This commit is contained in:
Michele Caini
2020-03-19 00:33:14 +01:00
parent fc47b47850
commit 7e5edad32b

View File

@@ -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)...);
}