src/cxx_supportlib/vendor-modified/boost/pool/pool.hpp in passenger-6.0.20 vs src/cxx_supportlib/vendor-modified/boost/pool/pool.hpp in passenger-6.0.23
- old
+ new
@@ -358,10 +358,10 @@
}
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<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
- return (std::numeric_limits<size_type>::max() - POD_size) / alloc_size();
+ return ((std::numeric_limits<size_type>::max)() - POD_size) / alloc_size();
}
static void * & nextof(void * const ptr)
{ //! \returns Pointer dereferenced.
//! (Provided and used for the sake of code readability :)