mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 20:37:22 +02:00
Added a workaround for MSVC macro max.
This commit is contained in:
@ -460,7 +460,7 @@ inline typename detail::alloc_if<!detail::alloc_has_max_size<A>::value,
|
||||
typename allocator_size_type<A>::type>::type
|
||||
allocator_max_size(const A&)
|
||||
{
|
||||
return std::numeric_limits<typename allocator_size_type<A>::type>::max() /
|
||||
return (std::numeric_limits<typename allocator_size_type<A>::type>::max)() /
|
||||
sizeof(typename A::value_type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user