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:
Andrey Semashev
2017-12-30 22:12:21 +03:00
committed by GitHub

View File

@ -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
};
};