瀏覽代碼

meta: add parentheses around max to prevent conflicts with max macro on Windows (#1278)

Christoph 6 月之前
父節點
當前提交
09b0e7f528
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/entt/meta/fwd.hpp

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

@@ -28,7 +28,7 @@ template<typename>
 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<std::size_t>::max();
+inline constexpr std::size_t meta_dynamic_extent = (std::numeric_limits<std::size_t>::max)();
 
 } // namespace entt