Skip to content

Commit 792eae1

Browse files
committed
fix the attributes of the let_ senders
1 parent fb944c3 commit 792eae1

5 files changed

Lines changed: 206 additions & 183 deletions

File tree

include/stdexec/__detail/__completion_behavior.hpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,17 @@ namespace STDEXEC
133133
struct __common_t
134134
{
135135
template <__behavior... _CSs>
136-
requires(sizeof...(_CSs) > 0)
137136
STDEXEC_ATTRIBUTE(nodiscard, host, device)
138137
constexpr auto operator()(__constant_t<_CSs>... __cbs) const noexcept
139138
{
140-
return (__cbs | ...);
139+
if constexpr (sizeof...(_CSs) == 0)
140+
{
141+
return __completion_behavior::__unknown;
142+
}
143+
else
144+
{
145+
return (__cbs | ...);
146+
}
141147
}
142148
};
143149

0 commit comments

Comments
 (0)