Ver Fonte

group: default template parameters

Michele Caini há 1 ano atrás
pai
commit
b198b3f087
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/entt/entity/fwd.hpp

+ 1 - 1
src/entt/entity/fwd.hpp

@@ -282,7 +282,7 @@ using view = basic_view<type_list_transform_t<Get, storage_for>, type_list_trans
  * @tparam Get Types of storage _observed_ by the group.
  * @tparam Get Types of storage _observed_ by the group.
  * @tparam Exclude Types of storage used to filter the group.
  * @tparam Exclude Types of storage used to filter the group.
  */
  */
-template<typename Owned, typename Get, typename Exclude>
+template<typename Owned, typename Get = get_t<>, typename Exclude = exclude_t<>>
 using group = basic_group<type_list_transform_t<Owned, storage_for>, type_list_transform_t<Get, storage_for>, type_list_transform_t<Exclude, storage_for>>;
 using group = basic_group<type_list_transform_t<Owned, storage_for>, type_list_transform_t<Get, storage_for>, type_list_transform_t<Exclude, storage_for>>;
 
 
 } // namespace entt
 } // namespace entt