From 484487f958b8ae1664645b558ca168a8c75c9b1c Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Fri, 17 Jul 2020 09:24:21 -0400 Subject: [PATCH] MSVC2017 /std:c++17 warnings in allocator access --- include/boost/core/allocator_access.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {