فهرست منبع

stl: std::extent_v

skypjack 5 روز پیش
والد
کامیت
61ecf3906d
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      src/entt/core/any.hpp
  2. 1 0
      src/entt/stl/type_traits.hpp

+ 1 - 1
src/entt/core/any.hpp

@@ -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)...);
             }

+ 1 - 0
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;