From cce52c673b68faed19130375d4ca020fcd0f7904 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 22 Jan 2021 09:17:00 +0100 Subject: [PATCH] view: use get_as_tuple internally --- src/entt/entity/view.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index 8657d35f9..8ef80b340 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -854,11 +854,7 @@ public: ENTT_ASSERT(contains(entt)); if constexpr(sizeof...(Comp) == 0) { - if constexpr(std::is_same_v) { - return std::make_tuple(); - } else { - return std::forward_as_tuple(pool->get(entt)); - } + return get_as_tuple(*pool, entt); } else { static_assert(std::is_same_v, "Invalid component type"); return pool->get(entt);