2
0
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:
Christopher Kohlhoff
2022-06-30 12:17:54 +10:00
parent 4ef2cd0054
commit 2eda791fcd
4 changed files with 102 additions and 0 deletions

View File

@@ -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.

View File

@@ -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.