From 09b0e7f528ed9fb45a8bc9d92658ed5051ea8fe8 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 25 Aug 2025 08:59:16 +0200 Subject: [PATCH] meta: add parentheses around max to prevent conflicts with max macro on Windows (#1278) --- src/entt/meta/fwd.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/meta/fwd.hpp b/src/entt/meta/fwd.hpp index 25097ccaf..1b1363958 100644 --- a/src/entt/meta/fwd.hpp +++ b/src/entt/meta/fwd.hpp @@ -28,7 +28,7 @@ template class meta_factory; /*! @brief Used to identicate that a sequence container has not a fixed size. */ -inline constexpr std::size_t meta_dynamic_extent = std::numeric_limits::max(); +inline constexpr std::size_t meta_dynamic_extent = (std::numeric_limits::max)(); } // namespace entt