stl: std::extent_v
This commit is contained in:
@@ -165,7 +165,7 @@ class basic_any: private internal::basic_any_storage<Len, Align> {
|
||||
this->instance = new plain_type{stl::forward<Args>(args)...};
|
||||
} else if constexpr(stl::is_array_v<plain_type>) {
|
||||
static_assert(sizeof...(Args) == 0u, "Invalid arguments");
|
||||
this->instance = new plain_type[std::extent_v<plain_type>]();
|
||||
this->instance = new plain_type[stl::extent_v<plain_type>]();
|
||||
} else {
|
||||
this->instance = new plain_type(stl::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user