From 07916e01f1ec074fad96dffc1cd5a499986f1383 Mon Sep 17 00:00:00 2001 From: Ian Petersen Date: Wed, 4 Sep 2024 11:07:35 -0700 Subject: [PATCH] Fix the broken test 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. --- include/unifex/when_all_range.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/unifex/when_all_range.hpp b/include/unifex/when_all_range.hpp index b2eb9035..2a96028c 100644 --- a/include/unifex/when_all_range.hpp +++ b/include/unifex/when_all_range.hpp @@ -307,7 +307,7 @@ struct _sender::type final { friend auto tag_invoke( unifex::tag_t /* unused */, Sender2&& sender, - Receiver&& receiver) { + Receiver&& receiver) -> operation, Sender> { // return an operation that wraps all connections return operation, Sender>{ static_cast(receiver),