diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index a2eedc6e3..76e191d7a 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -165,7 +165,7 @@ class basic_any: private internal::basic_any_storage { this->instance = new plain_type{stl::forward(args)...}; } else if constexpr(stl::is_array_v) { static_assert(sizeof...(Args) == 0u, "Invalid arguments"); - this->instance = new plain_type[std::extent_v](); + this->instance = new plain_type[stl::extent_v](); } else { this->instance = new plain_type(stl::forward(args)...); } diff --git a/src/entt/stl/type_traits.hpp b/src/entt/stl/type_traits.hpp index 72e8c3c1e..187bf5092 100644 --- a/src/entt/stl/type_traits.hpp +++ b/src/entt/stl/type_traits.hpp @@ -8,6 +8,7 @@ namespace entt::stl { using std::bool_constant; using std::decay_t; +using std::extent_v; using std::false_type; using std::invoke_result_t; using std::is_aggregate_v;