Skip to content

Commit 58f6b96

Browse files
committed
algorithm: Avoid copying arguments in race_and_cancel
1 parent 5d9e635 commit 58f6b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/async/algorithm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ operator co_await(race_and_cancel_sender<Functors...> s) {
451451

452452
template<typename... Functors>
453453
race_and_cancel_sender<Functors...> race_and_cancel(Functors... fs) {
454-
return {{fs...}};
454+
return {{std::move(fs)...}};
455455
}
456456

457457
//---------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)