diff options
Diffstat (limited to '3rdparty/asio/src/tests/unit/buffered_read_stream.cpp')
-rw-r--r-- | 3rdparty/asio/src/tests/unit/buffered_read_stream.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/3rdparty/asio/src/tests/unit/buffered_read_stream.cpp b/3rdparty/asio/src/tests/unit/buffered_read_stream.cpp index 28a0db1eb93..d517dbb96ea 100644 --- a/3rdparty/asio/src/tests/unit/buffered_read_stream.cpp +++ b/3rdparty/asio/src/tests/unit/buffered_read_stream.cpp @@ -2,7 +2,7 @@ // buffered_read_stream.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -31,7 +31,7 @@ #endif // defined(ASIO_HAS_BOOST_ARRAY) #if defined(ASIO_HAS_BOOST_BIND) -# include <boost/bind.hpp> +# include <boost/bind/bind.hpp> #else // defined(ASIO_HAS_BOOST_BIND) # include <functional> #endif // defined(ASIO_HAS_BOOST_BIND) @@ -81,14 +81,6 @@ void test_compile() stream_type::executor_type ex = stream1.get_executor(); (void)ex; -#if !defined(ASIO_NO_DEPRECATED) - io_context& ioc_ref = stream1.get_io_context(); - (void)ioc_ref; - - io_context& ioc_ref2 = stream1.get_io_service(); - (void)ioc_ref2; -#endif // !defined(ASIO_NO_DEPRECATED) - stream_type::lowest_layer_type& lowest_layer = stream1.lowest_layer(); (void)lowest_layer; @@ -259,9 +251,9 @@ void test_async_operations() namespace bindns = boost; #else // defined(ASIO_HAS_BOOST_BIND) namespace bindns = std; - using std::placeholders::_1; - using std::placeholders::_2; #endif // defined(ASIO_HAS_BOOST_BIND) + using bindns::placeholders::_1; + using bindns::placeholders::_2; asio::io_context io_context; |