diff --git a/include/boost/core/allocator_access.hpp b/include/boost/core/allocator_access.hpp index 4298e5b..b51569b 100644 --- a/include/boost/core/allocator_access.hpp +++ b/include/boost/core/allocator_access.hpp @@ -460,7 +460,7 @@ inline typename detail::alloc_if::value, typename allocator_size_type::type>::type allocator_max_size(const A&) { - return std::numeric_limits::type>::max() / + return (std::numeric_limits::type>::max)() / sizeof(typename A::value_type); }