Skip to content

Commit 2e860a2

Browse files
committed
added "is_reveiver" type alias in exec::reduce's receivers
1 parent 07cbea6 commit 2e860a2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/exec/reduce.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace exec {
3535
};
3636

3737
struct __t {
38+
using is_receiver = void;
3839
using __id = __receiver;
3940
__data* __op_;
4041

include/exec/static_thread_pool.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ namespace exec {
526526

527527
template <class SenderId, class ReceiverId, class InitT, class RedOp>
528528
struct reduce_reciever {
529+
using is_receiver = void;
529530
using Sender = stdexec::__t<SenderId>;
530531
using Receiver = stdexec::__t<ReceiverId>;
531532

0 commit comments

Comments
 (0)