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;