From f4616bb8b768c8b450f0d3ae128000bd7daa8de7 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Tue, 3 Oct 2023 15:29:49 +0800 Subject: [PATCH] windows move handle fix. --- include/boost/process/v2/detail/process_handle_windows.hpp | 2 +- test/v2/target.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/process/v2/detail/process_handle_windows.hpp b/include/boost/process/v2/detail/process_handle_windows.hpp index 979536a5c..bf78bae52 100644 --- a/include/boost/process/v2/detail/process_handle_windows.hpp +++ b/include/boost/process/v2/detail/process_handle_windows.hpp @@ -85,7 +85,7 @@ struct basic_process_handle_win template basic_process_handle_win(basic_process_handle_win && handle) - : pid_(handle.pid_), handle_(handle.handle_.get_executor()) + : pid_(handle.pid_), handle_(std::move(handle.handle_)) { } diff --git a/test/v2/target.cpp b/test/v2/target.cpp index db5633635..97256d6c1 100644 --- a/test/v2/target.cpp +++ b/test/v2/target.cpp @@ -1,8 +1,8 @@ #include #include #include -#include #include +#include extern char **environ;