mirror of
https://github.com/boostorg/detail.git
synced 2025-07-30 12:27:15 +02:00
Merge pull request #15 from DanielaE/fix/replace-deprecated-allocator-members
Most members of std::allocate are deprecated in C++17
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