Skip to content

Commit

Permalink
add move constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Jan 21, 2024
1 parent 4b511e2 commit 50a7641
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/boost/winasio/named_pipe/named_pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ class named_pipe : public boost::asio::windows::basic_stream_handle<Executor> {
0)
: boost::asio::windows::basic_stream_handle<executor_type>(
context.get_executor()) {}

named_pipe(named_pipe<executor_type> && other)
: boost::asio::windows::basic_stream_handle<executor_type>(std::move(other)) {}

void server_create(boost::system::error_code &ec,
endpoint_type const &endpoint) {
Expand Down

0 comments on commit 50a7641

Please sign in to comment.