From 61ecf3906d4b04d2c14c9041d24e0e8dbd048e02 Mon Sep 17 00:00:00 2001 From: skypjack Date: Tue, 7 Apr 2026 09:11:54 +0200 Subject: [PATCH] stl: std::extent_v --- src/entt/core/any.hpp | 2 +- src/entt/stl/type_traits.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;