Просмотр исходного кода

stl: std::is_move_constructible_v

skypjack 1 день назад
Родитель
Сommit
04dda74792
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      src/entt/entity/component.hpp
  2. 1 1
      src/entt/entity/storage.hpp
  3. 1 0
      src/entt/stl/type_traits.hpp

+ 1 - 1
src/entt/entity/component.hpp

@@ -14,7 +14,7 @@ namespace entt {
 namespace internal {
 namespace internal {
 
 
 template<typename Type>
 template<typename Type>
-struct in_place_delete: stl::bool_constant<!(std::is_move_constructible_v<Type> && stl::is_move_assignable_v<Type>)> {};
+struct in_place_delete: stl::bool_constant<!(stl::is_move_constructible_v<Type> && stl::is_move_assignable_v<Type>)> {};
 
 
 template<>
 template<>
 struct in_place_delete<void>: stl::false_type {};
 struct in_place_delete<void>: stl::false_type {};

+ 1 - 1
src/entt/entity/storage.hpp

@@ -298,7 +298,7 @@ private:
     }
     }
 
 
     void swap_or_move([[maybe_unused]] const stl::size_t from, [[maybe_unused]] const stl::size_t to) override {
     void swap_or_move([[maybe_unused]] const stl::size_t from, [[maybe_unused]] const stl::size_t to) override {
-        static constexpr bool is_pinned_type = !(std::is_move_constructible_v<Type> && stl::is_move_assignable_v<Type>);
+        static constexpr bool is_pinned_type = !(stl::is_move_constructible_v<Type> && stl::is_move_assignable_v<Type>);
         // use a runtime value to avoid compile-time suppression that drives the code coverage tool crazy
         // use a runtime value to avoid compile-time suppression that drives the code coverage tool crazy
         ENTT_ASSERT((from + 1u) && !is_pinned_type, "Pinned type");
         ENTT_ASSERT((from + 1u) && !is_pinned_type, "Pinned type");
 
 

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

@@ -34,6 +34,7 @@ using std::is_lvalue_reference_v;
 using std::is_member_object_pointer_v;
 using std::is_member_object_pointer_v;
 using std::is_member_pointer_v;
 using std::is_member_pointer_v;
 using std::is_move_assignable_v;
 using std::is_move_assignable_v;
+using std::is_move_constructible_v;
 using std::is_nothrow_constructible_v;
 using std::is_nothrow_constructible_v;
 using std::is_nothrow_copy_constructible_v;
 using std::is_nothrow_copy_constructible_v;
 using std::is_nothrow_default_constructible_v;
 using std::is_nothrow_default_constructible_v;