diff --git a/include/boost/core/allocator_access.hpp b/include/boost/core/allocator_access.hpp index bfe08f7..b3ea62b 100644 --- a/include/boost/core/allocator_access.hpp +++ b/include/boost/core/allocator_access.hpp @@ -137,6 +137,11 @@ template struct allocator_difference_type { typedef typename A::difference_type type; }; +#elif defined(BOOST_MSVC) +template +struct allocator_difference_type { + typedef typename std::allocator_traits::difference_type type; +}; #else template struct allocator_difference_type { @@ -156,6 +161,11 @@ template struct allocator_size_type { typedef typename A::size_type type; }; +#elif defined(BOOST_MSVC) +template +struct allocator_size_type { + typedef typename std::allocator_traits::size_type type; +}; #else template struct allocator_size_type {