mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
MSVC2017 /std:c++17 warnings in allocator access
This commit is contained in:
@ -137,6 +137,11 @@ template<class A>
|
|||||||
struct allocator_difference_type {
|
struct allocator_difference_type {
|
||||||
typedef typename A::difference_type 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
|
#else
|
||||||
template<class A, class = void>
|
template<class A, class = void>
|
||||||
struct allocator_difference_type {
|
struct allocator_difference_type {
|
||||||
@ -156,6 +161,11 @@ template<class A>
|
|||||||
struct allocator_size_type {
|
struct allocator_size_type {
|
||||||
typedef typename A::size_type 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
|
#else
|
||||||
template<class A, class = void>
|
template<class A, class = void>
|
||||||
struct allocator_size_type {
|
struct allocator_size_type {
|
||||||
|
Reference in New Issue
Block a user