From c6951ff77346c9996b607ed8c0083df41648ef65 Mon Sep 17 00:00:00 2001 From: Devon Morris Date: Thu, 11 Jan 2024 09:38:25 -0500 Subject: [PATCH] fix call on moved variable in execute --- include/boost/process/v2/execute.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/process/v2/execute.hpp b/include/boost/process/v2/execute.hpp index 18c46172..f910eef3 100644 --- a/include/boost/process/v2/execute.hpp +++ b/include/boost/process/v2/execute.hpp @@ -110,7 +110,7 @@ async_execute(basic_process proc, WaitHandler && handler BOOST_ASIO_DEFAULT_COMPLETION_TOKEN(Executor)) { std::unique_ptr> pro_(new basic_process(std::move(proc))); - auto exec = proc.get_executor(); + auto exec = pro_->get_executor(); return BOOST_PROCESS_V2_ASIO_NAMESPACE::async_compose( detail::execute_op{std::move(pro_)}, handler, exec); }