Procházet zdrojové kódy

group: default template parameters

Michele Caini před 1 rokem
rodič
revize
b198b3f087
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 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>>;
 
 } // namespace entt