Browse Source

view: use get_as_tuple internally

Michele Caini 5 years ago
parent
commit
cce52c673b
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/entt/entity/view.hpp

+ 1 - 5
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<typename storage_type::storage_category, empty_storage_tag>) {
-                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<Comp..., Component>, "Invalid component type");
             return pool->get(entt);