is_meta_pointer_like: refine definition
This commit is contained in:
@@ -51,7 +51,8 @@ struct is_meta_pointer_like<std::unique_ptr<Type, Args...>>
|
||||
* @tparam Type Element type.
|
||||
*/
|
||||
template<typename Type>
|
||||
struct is_meta_pointer_like<Type, std::void_t<typename Type::is_meta_pointer_like>>
|
||||
requires requires { typename Type::is_meta_pointer_like; }
|
||||
struct is_meta_pointer_like<Type>
|
||||
: std::true_type {};
|
||||
|
||||
} // namespace entt
|
||||
|
||||
@@ -31,7 +31,7 @@ struct meta_associative_container_traits;
|
||||
* @brief Provides the member constant `value` to true if a given type is a
|
||||
* pointer-like type from the point of view of the meta system, false otherwise.
|
||||
*/
|
||||
template<typename, typename = void>
|
||||
template<typename>
|
||||
struct is_meta_pointer_like: std::false_type {};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user