Browse Source

component_traits: refine definition

skypjack 1 month ago
parent
commit
8718ee3279
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/entt/entity/component.hpp
  2. 1 1
      src/entt/entity/fwd.hpp

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

@@ -41,7 +41,7 @@ struct page_size<Type>: std::integral_constant<std::size_t, Type::page_size> {};
  * @tparam Type Element type.
  * @tparam Type Element type.
  * @tparam Entity A valid entity type.
  * @tparam Entity A valid entity type.
  */
  */
-template<cvref_unqualified Type, entity_like Entity, typename>
+template<cvref_unqualified Type, entity_like Entity>
 struct component_traits {
 struct component_traits {
     /*! @brief Element type. */
     /*! @brief Element type. */
     using element_type = Type;
     using element_type = Type;

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

@@ -44,7 +44,7 @@ enum class deletion_policy : std::uint8_t {
     unspecified = swap_and_pop
     unspecified = swap_and_pop
 };
 };
 
 
-template<cvref_unqualified Type, entity_like Entity = entity, typename = void>
+template<cvref_unqualified Type, entity_like Entity = entity>
 struct component_traits;
 struct component_traits;
 
 
 template<entity_like Entity = entity, typename = std::allocator<Entity>>
 template<entity_like Entity = entity, typename = std::allocator<Entity>>