skypjack 1 месяц назад
Родитель
Сommit
0a1b4f9adc
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      src/entt/core/bit.hpp
  2. 1 0
      src/entt/stl/concepts.hpp

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

@@ -15,7 +15,7 @@ namespace entt {
  * @param mod _Modulus_, it must be a power of two.
  * @return The common remainder.
  */
-template<std::unsigned_integral Type>
+template<stl::unsigned_integral Type>
 [[nodiscard]] constexpr Type fast_mod(const Type value, const stl::size_t mod) noexcept {
     ENTT_ASSERT_CONSTEXPR(std::has_single_bit(mod), "Value must be a power of two");
     return static_cast<Type>(value & (mod - 1u));

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

@@ -10,6 +10,7 @@ using std::constructible_from;
 using std::derived_from;
 using std::invocable;
 using std::same_as;
+using std::unsigned_integral;
 
 } // namespace entt::stl
 /*! @endcond */