forked from boostorg/core
Added a workaround for MSVC macro max.
This commit is contained in:
1 parent
fa6e38a9aa
commit
15db54983b
1 file changed
+1
-1
@@ -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