diff --git a/src/entt/container/dense_map.hpp b/src/entt/container/dense_map.hpp index f45ab28e6..7946cfbbb 100644 --- a/src/entt/container/dense_map.hpp +++ b/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::max)(); +static constexpr stl::size_t dense_map_placeholder_position = (stl::numeric_limits::max)(); template struct dense_map_node final { diff --git a/src/entt/container/dense_set.hpp b/src/entt/container/dense_set.hpp index 1cd12d120..ea9bafe07 100644 --- a/src/entt/container/dense_set.hpp +++ b/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::max)(); +static constexpr stl::size_t dense_set_placeholder_position = (stl::numeric_limits::max)(); template class dense_set_iterator final { diff --git a/src/entt/meta/fwd.hpp b/src/entt/meta/fwd.hpp index 1c020c613..a2bc9ea23 100644 --- a/src/entt/meta/fwd.hpp +++ b/src/entt/meta/fwd.hpp @@ -30,7 +30,7 @@ template 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::max)(); +inline constexpr stl::size_t meta_dynamic_extent = (stl::numeric_limits::max)(); } // namespace entt diff --git a/src/entt/stl/limits.hpp b/src/entt/stl/limits.hpp index 1b4f85152..58bab069d 100644 --- a/src/entt/stl/limits.hpp +++ b/src/entt/stl/limits.hpp @@ -6,6 +6,8 @@ /*! @cond ENTT_INTERNAL */ namespace entt::stl { +using std::numeric_limits; + } // namespace entt::stl /*! @endcond */