Skip to content

Commit fe00aed

Browse files
authored
Merge pull request #1529 from sithhell/fix/disambiguate_connect
fix: Disambiguate connect in async_scope
2 parents 45887cf + 90a7502 commit fe00aed

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

include/exec/async_scope.hpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ namespace exec {
7171

7272
explicit __t(const __impl* __scope, _Constrained&& __sndr, _Receiver __rcvr)
7373
: __task{{}, __scope, __notify_waiter}
74-
, __op_(
75-
stdexec::connect(
76-
static_cast<_Constrained&&>(__sndr),
77-
static_cast<_Receiver&&>(__rcvr))) {
74+
, __op_(stdexec::connect(
75+
static_cast<_Constrained&&>(__sndr),
76+
static_cast<_Receiver&&>(__rcvr))) {
7877
}
7978

8079
void start() & noexcept {
@@ -597,7 +596,7 @@ namespace exec {
597596

598597
__future_state(_Sender __sndr, _Env __env, const __impl* __scope)
599598
: __future_state(
600-
connect,
599+
stdexec::connect,
601600
static_cast<_Sender&&>(__sndr),
602601
static_cast<_Env&&>(__env),
603602
__scope) {
@@ -751,7 +750,11 @@ namespace exec {
751750
}
752751

753752
__t(_Sender __sndr, _Env __env, const __impl* __scope)
754-
: __t(connect, static_cast<_Sender&&>(__sndr), static_cast<_Env&&>(__env), __scope) {
753+
: __t(
754+
stdexec::connect,
755+
static_cast<_Sender&&>(__sndr),
756+
static_cast<_Env&&>(__env),
757+
__scope) {
755758
// If the operation completes synchronously, then the following line will cause
756759
// the destruction of *this, which is not a problem because we used a delegating
757760
// constructor, so *this is considered fully constructed.

0 commit comments

Comments
 (0)