Skip to content

Commit abcd38a

Browse files
authored
Merge pull request #1897 from ericniebler/fix-as-awaitable
remove static_assert causing `as_awaitable` to recurse
2 parents b84044a + f8e3d8d commit abcd38a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)