We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b84044a + f8e3d8d commit abcd38aCopy full SHA for abcd38a
include/stdexec/__detail/__as_awaitable.hpp
@@ -285,8 +285,6 @@ namespace STDEXEC
285
using namespace __as_awaitable;
286
if constexpr (__connect_await::__has_as_awaitable_member<_Tp, _Promise>)
287
{
288
- using __result_t = decltype(static_cast<_Tp&&>(__t).as_awaitable(__promise));
289
- static_assert(__awaitable<__result_t, _Promise>);
290
return static_cast<_Tp&&>(__t).as_awaitable(__promise);
291
}
292
else if constexpr (__awaitable<_Tp, __unspecified>) // NOT __awaitable<_Tp, _Promise> !!
0 commit comments