is_meta_pointer_like: refine definition

This commit is contained in:
skypjack
2026-02-03 10:35:58 +01:00
parent 8718ee3279
commit 39806a525f
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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 {};
/**