Skip to content

Commit

Permalink
fix call on moved variable in execute
Browse files Browse the repository at this point in the history
  • Loading branch information
DevonMorris authored and klemens-morgenstern committed Mar 31, 2024
1 parent f2330c1 commit c6951ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/process/v2/execute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async_execute(basic_process<Executor> proc,
WaitHandler && handler BOOST_ASIO_DEFAULT_COMPLETION_TOKEN(Executor))
{
std::unique_ptr<basic_process<Executor>> pro_(new basic_process<Executor>(std::move(proc)));
auto exec = proc.get_executor();
auto exec = pro_->get_executor();
return BOOST_PROCESS_V2_ASIO_NAMESPACE::async_compose<WaitHandler, void(error_code, int)>(
detail::execute_op<Executor>{std::move(pro_)}, handler, exec);
}
Expand Down

0 comments on commit c6951ff

Please sign in to comment.