1
0
forked from boostorg/core

MSVC2017 /std:c++17 warnings in allocator access

This commit is contained in:
Glen Fernandes
2020-07-17 09:24:21 -04:00
parent 503d035b7f
commit 484487f958

View File

@ -137,6 +137,11 @@ template<class A>
struct allocator_difference_type {
typedef typename A::difference_type type;
};
#elif defined(BOOST_MSVC)
template<class A>
struct allocator_difference_type {
typedef typename std::allocator_traits<A>::difference_type type;
};
#else
template<class A, class = void>
struct allocator_difference_type {
@ -156,6 +161,11 @@ template<class A>
struct allocator_size_type {
typedef typename A::size_type type;
};
#elif defined(BOOST_MSVC)
template<class A>
struct allocator_size_type {
typedef typename std::allocator_traits<A>::size_type type;
};
#else
template<class A, class = void>
struct allocator_size_type {