diff --git a/src/entt/meta/pointer.hpp b/src/entt/meta/pointer.hpp index d25f896dc..62a2453b1 100644 --- a/src/entt/meta/pointer.hpp +++ b/src/entt/meta/pointer.hpp @@ -20,6 +20,17 @@ struct is_meta_pointer_like {}; +/** + * @brief Partial specialization used to reject pointers to arrays. + * @tparam Type Type of elements of the array. + * @tparam N Number of elements of the array. + */ +template +struct is_meta_pointer_like + : std::false_type +{}; + + /** * @brief Makes `std::shared_ptr`s of any type pointer-like types for the meta * system. diff --git a/src/entt/meta/type_traits.hpp b/src/entt/meta/type_traits.hpp index 9a79838e1..8fe91aa55 100644 --- a/src/entt/meta/type_traits.hpp +++ b/src/entt/meta/type_traits.hpp @@ -65,15 +65,6 @@ template struct is_meta_pointer_like: std::false_type {}; -/** - * @brief Partial specialization to ensure that arrays aren't accepted. - * @tparam Type Type of elements of the array. - * @tparam N Number of elements of the array. - */ -template -struct is_meta_pointer_like: std::false_type {}; - - /** * @brief Partial specialization to ensure that const pointer-like types are * also accepted.