Browse Source

stl: std::is_copy_assignable_v

skypjack 1 day ago
parent
commit
50346a4cf8
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/entt/core/any.hpp
  2. 1 0
      src/entt/stl/type_traits.hpp

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

@@ -82,7 +82,7 @@ class basic_any: private internal::basic_any_storage<Len, Align> {
             }
             }
             [[fallthrough]];
             [[fallthrough]];
         case assign:
         case assign:
-            if constexpr(std::is_copy_assignable_v<Type>) {
+            if constexpr(stl::is_copy_assignable_v<Type>) {
                 *const_cast<Type *>(elem) = *static_cast<const Type *>(other);
                 *const_cast<Type *>(elem) = *static_cast<const Type *>(other);
                 return other;
                 return other;
             }
             }

+ 1 - 0
src/entt/stl/type_traits.hpp

@@ -11,6 +11,7 @@ using std::false_type;
 using std::invoke_result_t;
 using std::invoke_result_t;
 using std::is_aggregate_v;
 using std::is_aggregate_v;
 using std::is_const_v;
 using std::is_const_v;
+using std::is_copy_assignable_v;
 using std::is_default_constructible_v;
 using std::is_default_constructible_v;
 using std::is_invocable_r_v;
 using std::is_invocable_r_v;
 using std::is_lvalue_reference_v;
 using std::is_lvalue_reference_v;