skypjack 2 дней назад
Родитель
Сommit
94898f6083

+ 1 - 1
src/entt/container/dense_map.hpp

@@ -27,7 +27,7 @@ namespace entt {
 /*! @cond ENTT_INTERNAL */
 namespace internal {
 
-static constexpr stl::size_t dense_map_placeholder_position = (std::numeric_limits<stl::size_t>::max)();
+static constexpr stl::size_t dense_map_placeholder_position = (stl::numeric_limits<stl::size_t>::max)();
 
 template<typename Key, typename Type>
 struct dense_map_node final {

+ 1 - 1
src/entt/container/dense_set.hpp

@@ -25,7 +25,7 @@ namespace entt {
 /*! @cond ENTT_INTERNAL */
 namespace internal {
 
-static constexpr stl::size_t dense_set_placeholder_position = (std::numeric_limits<stl::size_t>::max)();
+static constexpr stl::size_t dense_set_placeholder_position = (stl::numeric_limits<stl::size_t>::max)();
 
 template<typename It>
 class dense_set_iterator final {

+ 1 - 1
src/entt/meta/fwd.hpp

@@ -30,7 +30,7 @@ template<typename>
 class meta_factory;
 
 /*! @brief Used to identicate that a sequence container has not a fixed size. */
-inline constexpr stl::size_t meta_dynamic_extent = (std::numeric_limits<stl::size_t>::max)();
+inline constexpr stl::size_t meta_dynamic_extent = (stl::numeric_limits<stl::size_t>::max)();
 
 } // namespace entt
 

+ 2 - 0
src/entt/stl/limits.hpp

@@ -6,6 +6,8 @@
 /*! @cond ENTT_INTERNAL */
 namespace entt::stl {
 
+using std::numeric_limits;
+
 } // namespace entt::stl
 /*! @endcond */