Most members of std::allocate are deprecated in C++17:

fix #1202

Replace them by their cousins from std::allocator_traits;
otherwise, heaps of deprecation warnings will fall onto
humble users when compiling with MSVC 15 in C++17 mode.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert authored and Vinnie Falco committed 2018-07-23 09:19:46 -07:00
1 parent 8ed039200d
commit e0f4c1d769
3 files changed
+11

No files matched your search

@@ -197,8 +197,13 @@ class icy_stream<NextLayer>::read_op
: public boost::asio::coroutine
{
using alloc_type = typename
#if defined(BOOST_NO_CXX11_ALLOCATOR)
boost::asio::associated_allocator_t<Handler>::template
rebind<char>::other;
#else
std::allocator_traits<boost::asio::associated_allocator_t<Handler>>
::template rebind_alloc<char>;
#endif
struct data
{