Skip to content

Commit

Permalink
Fix the broken test
Browse files Browse the repository at this point in the history
Declare a return type on `when_all_range`'s customization of `connect`
so that `v1::async_scope::detached_spawn()`'s require clause can
determine whether a `when_all_range` sender is const-ref-connectable.
  • Loading branch information
ispeters committed Sep 4, 2024
1 parent 2f24a67 commit 07916e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/unifex/when_all_range.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ struct _sender<Sender>::type final {
friend auto tag_invoke(
unifex::tag_t<unifex::connect> /* unused */,
Sender2&& sender,
Receiver&& receiver) {
Receiver&& receiver) -> operation<remove_cvref_t<Receiver>, Sender> {
// return an operation that wraps all connections
return operation<unifex::remove_cvref_t<Receiver>, Sender>{
static_cast<Receiver&&>(receiver),
Expand Down

0 comments on commit 07916e0

Please sign in to comment.