Răsfoiți Sursa

stl: std::integral

skypjack 3 săptămâni în urmă
părinte
comite
f0a306aa6f
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 1
      src/entt/core/iterator.hpp
  2. 1 0
      src/entt/stl/concepts.hpp

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

@@ -54,7 +54,7 @@ private:
  * @brief Plain iota iterator (waiting for C++20).
  * @tparam Type Value type.
  */
-template<std::integral Type>
+template<stl::integral Type>
 struct iota_iterator final {
     /*! @brief Value type, likely an integral one. */
     using value_type = Type;

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

@@ -9,6 +9,7 @@ namespace entt::stl {
 using std::constructible_from;
 using std::default_initializable;
 using std::derived_from;
+using std::integral;
 using std::invocable;
 using std::same_as;
 using std::unsigned_integral;