From 15db54983b4ed3bcb94161289d92b86be059e179 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 23 May 2020 02:39:59 +0300 Subject: [PATCH] Added a workaround for MSVC macro max. --- include/boost/core/allocator_access.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }