Skip to content

Commit ec7da07

Browse files
committed
Fix naked 'max' call that was failing on Windows. Fixes #864
1 parent 8ec1be1 commit ec7da07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/pool/pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class pool: protected simple_segregated_storage < typename UserAllocator::size_t
360360
size_type max_chunks() const
361361
{ //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool.
362362
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();
363+
return ((std::numeric_limits<size_type>::max)() - POD_size) / alloc_size();
364364
}
365365

366366
static void * & nextof(void * const ptr)

0 commit comments

Comments
 (0)