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

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

@@ -30,7 +30,7 @@ template<>
 struct page_size<void>: std::integral_constant<std::size_t, 0u> {};
 
 template<typename Type>
-requires std::is_convertible_v<decltype(Type::page_size), std::size_t>
+requires stl::is_convertible_v<decltype(Type::page_size), std::size_t>
 struct page_size<Type>: std::integral_constant<std::size_t, Type::page_size> {};
 
 } // namespace internal

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

@@ -554,7 +554,7 @@ public:
      */
     template<std::size_t Index, typename Type>
     void storage(Type &elem) noexcept {
-        static_assert(std::is_convertible_v<Type &, element_at<Index> &>, "Unexpected type");
+        static_assert(stl::is_convertible_v<Type &, element_at<Index> &>, "Unexpected type");
 
         if constexpr(Index < sizeof...(Get)) {
             base_type::pool_at(Index, &elem);

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

@@ -16,6 +16,7 @@ using std::is_aggregate_v;
 using std::is_array_v;
 using std::is_const_v;
 using std::is_constructible_v;
+using std::is_convertible_v;
 using std::is_copy_assignable_v;
 using std::is_copy_constructible_v;
 using std::is_default_constructible_v;