From 50a7641f192bfc3bf010777a9a4800fe8e2fdb84 Mon Sep 17 00:00:00 2001 From: Youyuan Wu Date: Sun, 21 Jan 2024 15:36:20 -0800 Subject: [PATCH] add move constructor --- include/boost/winasio/named_pipe/named_pipe.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/winasio/named_pipe/named_pipe.hpp b/include/boost/winasio/named_pipe/named_pipe.hpp index fd4fac8..0899464 100644 --- a/include/boost/winasio/named_pipe/named_pipe.hpp +++ b/include/boost/winasio/named_pipe/named_pipe.hpp @@ -49,6 +49,9 @@ class named_pipe : public boost::asio::windows::basic_stream_handle { 0) : boost::asio::windows::basic_stream_handle( context.get_executor()) {} + + named_pipe(named_pipe && other) + : boost::asio::windows::basic_stream_handle(std::move(other)) {} void server_create(boost::system::error_code &ec, endpoint_type const &endpoint) {