registry: make vs2017 happy again

This commit is contained in:
Michele Caini
2021-03-26 15:35:11 +01:00
parent 27be812cc3
commit f874c8309f

View File

@@ -809,7 +809,7 @@ public:
ENTT_ASSERT(valid(entity));
if constexpr(sizeof...(Component) == 1) {
return (static_cast<Component &>(assure<std::remove_const_t<Component>>()->get(entity)), ...);
return (const_cast<Component &>(assure<std::remove_const_t<Component>>()->get(entity)), ...);
} else {
return std::forward_as_tuple(get<Component>(entity)...);
}