mirror of
https://github.com/boostorg/detail.git
synced 2025-07-29 20:07: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>
|
||||
struct result
|
||||
{
|
||||
#ifdef BOOST_NO_CXX11_ALLOCATOR
|
||||
typedef typename Allocator::BOOST_NESTED_TEMPLATE
|
||||
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