Skip to content

Commit f8e3d8d

Browse files
committed
remove static_assert causing as_awaitable to recurse
1 parent b84044a commit f8e3d8d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

include/stdexec/__detail/__as_awaitable.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@ namespace STDEXEC
285285
using namespace __as_awaitable;
286286
if constexpr (__connect_await::__has_as_awaitable_member<_Tp, _Promise>)
287287
{
288-
using __result_t = decltype(static_cast<_Tp&&>(__t).as_awaitable(__promise));
289-
static_assert(__awaitable<__result_t, _Promise>);
290288
return static_cast<_Tp&&>(__t).as_awaitable(__promise);
291289
}
292290
else if constexpr (__awaitable<_Tp, __unspecified>) // NOT __awaitable<_Tp, _Promise> !!

0 commit comments

Comments
 (0)