chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.99k stars 1.23k forks source link

parallel_group: Take completion handlers with a std::vector<std::size_t>&& completion_order argument #1427

Open reddwarf69 opened 9 months ago

reddwarf69 commented 9 months ago

https://github.com/chriskohlhoff/asio/blob/ed5db1b50136bace796062c1a6eab0df9a74f8fa/asio/include/asio/experimental/impl/parallel_group.hpp#L476 moves the vector of arguments, but it doesn't move the completion_order vector, making it reject completion handlers with a std::vector<std::size_t>&& completion_order argument.

AFAICT the completion_order could also be std::moved.