We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec1be1 commit ec7da07Copy full SHA for ec7da07
1 file changed
include/boost/pool/pool.hpp
@@ -360,7 +360,7 @@ class pool: protected simple_segregated_storage < typename UserAllocator::size_t
360
size_type max_chunks() const
361
{ //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool.
362
size_type POD_size = integer::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
363
- return (std::numeric_limits<size_type>::max() - POD_size) / alloc_size();
+ return ((std::numeric_limits<size_type>::max)() - POD_size) / alloc_size();
364
}
365
366
static void * & nextof(void * const ptr)
0 commit comments