diff --git a/include/boost/pool/pool.hpp b/include/boost/pool/pool.hpp index 12728a7..f6d9e6c 100644 --- a/include/boost/pool/pool.hpp +++ b/include/boost/pool/pool.hpp @@ -360,7 +360,7 @@ class pool: protected simple_segregated_storage < typename UserAllocator::size_t size_type max_chunks() const { //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool. size_type POD_size = integer::static_lcm::value + sizeof(size_type); - return (std::numeric_limits::max() - POD_size) / alloc_size(); + return ((std::numeric_limits::max)() - POD_size) / alloc_size(); } static void * & nextof(void * const ptr)