mirror of
https://github.com/boostorg/detail.git
synced 2025-07-30 20:37:14 +02:00
Most members of std::allocate are deprecated in C++17
Replace them by their cousins from std::allocator_traits. Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
@ -121,8 +121,13 @@ struct rebinder
|
|||||||
template<typename Type>
|
template<typename Type>
|
||||||
struct result
|
struct result
|
||||||
{
|
{
|
||||||
|
#ifdef BOOST_NO_CXX11_ALLOCATOR
|
||||||
typedef typename Allocator::BOOST_NESTED_TEMPLATE
|
typedef typename Allocator::BOOST_NESTED_TEMPLATE
|
||||||
rebind<Type>::other other;
|
rebind<Type>::other other;
|
||||||
|
#else
|
||||||
|
typedef typename std::allocator_traits<Allocator>::BOOST_NESTED_TEMPLATE
|
||||||
|
rebind_alloc<Type> other;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user