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 | 27 |
1 files changed, 5 insertions, 22 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..21b4abc0bbb 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-2024 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) @@ -17,6 +17,7 @@ #include "asio/buffered_read_stream.hpp" #include <cstring> +#include <functional> #include "archetypes/async_result.hpp" #include "asio/buffer.hpp" #include "asio/io_context.hpp" @@ -30,12 +31,6 @@ # include <array> #endif // defined(ASIO_HAS_BOOST_ARRAY) -#if defined(ASIO_HAS_BOOST_BIND) -# include <boost/bind.hpp> -#else // defined(ASIO_HAS_BOOST_BIND) -# include <functional> -#endif // defined(ASIO_HAS_BOOST_BIND) - typedef asio::buffered_read_stream< asio::ip::tcp::socket> stream_type; @@ -81,14 +76,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; @@ -255,13 +242,9 @@ void test_async_operations() { using namespace std; // For memcmp. -#if defined(ASIO_HAS_BOOST_BIND) - 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; @@ -340,7 +323,7 @@ void test_async_operations() ASIO_TEST_SUITE ( "buffered_read_stream", - ASIO_TEST_CASE(test_compile) + ASIO_COMPILE_TEST_CASE(test_compile) ASIO_TEST_CASE(test_sync_operations) ASIO_TEST_CASE(test_async_operations) ) |