mirror of
https://github.com/boostorg/asio.git
synced 2026-02-22 01:32:08 +00:00
Add converting move construction/assignment to pipes.
This commit is contained in:
@@ -75,6 +75,9 @@ void test()
|
||||
|
||||
#if defined(BOOST_ASIO_HAS_MOVE)
|
||||
readable_pipe pipe5(std::move(pipe4));
|
||||
|
||||
basic_readable_pipe<io_context::executor_type> pipe6(ioc);
|
||||
readable_pipe pipe7(std::move(pipe6));
|
||||
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
||||
|
||||
// basic_readable_pipe operators.
|
||||
@@ -82,6 +85,7 @@ void test()
|
||||
#if defined(BOOST_ASIO_HAS_MOVE)
|
||||
pipe1 = readable_pipe(ioc);
|
||||
pipe1 = std::move(pipe2);
|
||||
pipe1 = std::move(pipe6);
|
||||
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
||||
|
||||
// basic_io_object functions.
|
||||
|
||||
@@ -75,6 +75,9 @@ void test()
|
||||
|
||||
#if defined(BOOST_ASIO_HAS_MOVE)
|
||||
writable_pipe pipe5(std::move(pipe4));
|
||||
|
||||
basic_writable_pipe<io_context::executor_type> pipe6(ioc);
|
||||
writable_pipe pipe7(std::move(pipe6));
|
||||
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
||||
|
||||
// basic_writable_pipe operators.
|
||||
@@ -82,6 +85,7 @@ void test()
|
||||
#if defined(BOOST_ASIO_HAS_MOVE)
|
||||
pipe1 = writable_pipe(ioc);
|
||||
pipe1 = std::move(pipe2);
|
||||
pipe1 = std::move(pipe6);
|
||||
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
||||
|
||||
// basic_io_object functions.
|
||||
|
||||
Reference in New Issue
Block a user