diff --git a/src/entt/meta/pointer.hpp b/src/entt/meta/pointer.hpp index d381c5e5f..192e4fad5 100644 --- a/src/entt/meta/pointer.hpp +++ b/src/entt/meta/pointer.hpp @@ -51,7 +51,8 @@ struct is_meta_pointer_like> * @tparam Type Element type. */ template -struct is_meta_pointer_like> +requires requires { typename Type::is_meta_pointer_like; } +struct is_meta_pointer_like : std::true_type {}; } // namespace entt diff --git a/src/entt/meta/type_traits.hpp b/src/entt/meta/type_traits.hpp index cb684b42c..9ba167f55 100644 --- a/src/entt/meta/type_traits.hpp +++ b/src/entt/meta/type_traits.hpp @@ -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 +template struct is_meta_pointer_like: std::false_type {}; /**