removed useless remove_reference_t

This commit is contained in:
Michele Caini
2019-03-12 14:56:28 +01:00
parent dcbf6e43c7
commit 44856c6207

View File

@@ -796,7 +796,7 @@ public:
template<typename Component, typename... Args>
Component & get_or_assign(const entity_type entity, Args &&... args) ENTT_NOEXCEPT {
assert(valid(entity));
auto *cpool = assure<std::remove_reference_t<Component>>();
auto *cpool = assure<Component>();
auto *comp = cpool->try_get(entity);
return comp ? *comp : cpool->construct(entity, std::forward<Args>(args)...);
}