diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 51a0c7b1d..4fd9604e3 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -494,7 +494,7 @@ public: */ template [[nodiscard]] meta_any allow_cast() const { - if constexpr(!std::is_reference_v || stl::is_const_v>) { + if constexpr(!stl::is_reference_v || stl::is_const_v>) { if(storage.has_value>()) { return as_ref(); } else if(*this) { @@ -530,7 +530,7 @@ public: */ template [[nodiscard]] bool allow_cast() { - if constexpr(std::is_reference_v && !stl::is_const_v>) { + if constexpr(stl::is_reference_v && !stl::is_const_v>) { return allow_cast &>() && (storage.policy() != any_policy::cref); } else { if(storage.has_value>()) { diff --git a/src/entt/meta/policy.hpp b/src/entt/meta/policy.hpp index 206b20a84..b3a9f2b11 100644 --- a/src/entt/meta/policy.hpp +++ b/src/entt/meta/policy.hpp @@ -33,7 +33,7 @@ struct as_void_t final: private internal::meta_policy { struct as_ref_t final: private internal::meta_policy { /*! @cond ENTT_INTERNAL */ template - static constexpr bool value = std::is_reference_v && !stl::is_const_v>; + static constexpr bool value = stl::is_reference_v && !stl::is_const_v>; /*! @endcond */ }; @@ -41,7 +41,7 @@ struct as_ref_t final: private internal::meta_policy { struct as_cref_t final: private internal::meta_policy { /*! @cond ENTT_INTERNAL */ template - static constexpr bool value = std::is_reference_v; + static constexpr bool value = stl::is_reference_v; /*! @endcond */ }; diff --git a/src/entt/stl/type_traits.hpp b/src/entt/stl/type_traits.hpp index 19c1db23e..a86cb82df 100644 --- a/src/entt/stl/type_traits.hpp +++ b/src/entt/stl/type_traits.hpp @@ -41,6 +41,7 @@ using std::is_nothrow_destructible_v; using std::is_nothrow_invocable_v; using std::is_nothrow_move_constructible_v; using std::is_pointer_v; +using std::is_reference_v; using std::is_same_v; using std::is_trivially_destructible_v; using std::is_void_v;