From 1631ba81345c9e6bff270ab421f3a9a8690f47ae Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Sat, 30 Dec 2017 18:15:56 +0100 Subject: [PATCH] Most members of std::allocate are deprecated in C++17 Replace them by their cousins from std::allocator_traits. Signed-off-by: Daniela Engert --- include/boost/detail/allocator_utilities.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/detail/allocator_utilities.hpp b/include/boost/detail/allocator_utilities.hpp index ed3de84..868d712 100644 --- a/include/boost/detail/allocator_utilities.hpp +++ b/include/boost/detail/allocator_utilities.hpp @@ -121,8 +121,13 @@ struct rebinder template struct result { +#ifdef BOOST_NO_CXX11_ALLOCATOR typedef typename Allocator::BOOST_NESTED_TEMPLATE rebind::other other; +#else + typedef typename std::allocator_traits::BOOST_NESTED_TEMPLATE + rebind_alloc other; +#endif }; };