Browse Source

view: minor changes

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

+ 1 - 2
src/entt/entity/view.hpp

@@ -528,8 +528,7 @@ public:
      */
      */
     template<typename Comp, typename Func>
     template<typename Comp, typename Func>
     void each(Func func) const {
     void each(Func func) const {
-        using non_empty_type = type_list_cat_t<std::conditional_t<is_eto_eligible_v<Component>, type_list<>, type_list<Component>>...>;
-        traverse<Comp>(std::move(func), non_empty_type{});
+        traverse<Comp>(std::move(func), (std::conditional_t<is_eto_eligible_v<Component>, type_list<>, type_list<Component>>{} + ...));
     }
     }
 
 
     /**
     /**