Skip to content

Commit 730b263

Browse files
authored
Merge pull request #1612 from ericniebler/improve-diagnostic-when-connecting-task-without-scheduler
remove vestigial get_completion_signatures on exec::task causing poor diagnostics
2 parents 680daad + 4ec848e commit 730b263

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

include/exec/task.hpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -494,22 +494,6 @@ namespace exec {
494494
return __task_awaitable<>{std::exchange(__coro_, {})};
495495
}
496496

497-
// From the list of types [_Ty], remove any types that are void, and send
498-
// the resulting list to __qf<set_value_t>, which uses the list of types
499-
// as arguments of a function type. In other words, set_value_t() if _Ty
500-
// is void, and set_value_t(_Ty) otherwise.
501-
using __set_value_sig_t = __minvoke<__mremove<void, __qf<set_value_t>>, _Ty>;
502-
503-
// Specify basic_task's completion signatures
504-
// This is only necessary when basic_task is not generally awaitable
505-
// owing to constraints imposed by its _Context parameter.
506-
using __task_traits_t =
507-
completion_signatures<__set_value_sig_t, set_error_t(std::exception_ptr), set_stopped_t()>;
508-
509-
auto get_completion_signatures(__ignore = {}) const -> __task_traits_t {
510-
return {};
511-
}
512-
513497
explicit basic_task(__coro::coroutine_handle<promise_type> __coro) noexcept
514498
: __coro_(__coro) {
515499
}

0 commit comments

Comments
 (0)