Added a workaround for MSVC macro max.

This commit is contained in:
Andrey Semashev
2020-05-23 02:39:59 +03:00
parent fa6e38a9aa
commit 15db54983b

View File

@ -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);
}