diff --git a/libs/core/execution_base/tests/unit/coroutine_utils.cpp b/libs/core/execution_base/tests/unit/coroutine_utils.cpp index dba37be6ed7..4268908c31c 100644 --- a/libs/core/execution_base/tests/unit/coroutine_utils.cpp +++ b/libs/core/execution_base/tests/unit/coroutine_utils.cpp @@ -35,10 +35,8 @@ struct non_awaitable_sender }; #if !defined(HPX_HAVE_STDEXEC) -using dependent = hpx::execution::experimental::completion_signatures< - hpx::execution::experimental::set_value_t(bool), - hpx::execution::experimental::set_error_t(std::exception_ptr), - hpx::execution::experimental::set_stopped_t()>; +using dependent = hpx::execution::experimental::dependent_completion_signatures< + hpx::execution::experimental::no_env>; #endif template @@ -82,19 +80,12 @@ struct awaiter } }; -struct invalid_awaiter -{ - bool await_ready(); - bool await_suspend(hpx::coroutine_handle<>); - //void await_resume(); -}; - template struct awaitable_sender_1 { Awaiter operator co_await() { - return {}; + return Awaiter{}; } }; @@ -300,31 +291,31 @@ int main() static_assert(std::is_same_v< hpx::functional::tag_invoke_result_t&>, - ex::detail::dependent_completion_signatures>); + ex::detail::dependent_completion_signatures>); static_assert(std::is_same_v< decltype(ex::get_awaiter(std::declval(), - static_cast*>(nullptr))), - ex::detail::dependent_completion_signatures>); + static_cast*>(nullptr))), + ex::detail::dependent_completion_signatures>); // clang-format off static_assert(ex::is_awaiter_v(), - static_cast*>(nullptr)))>); + static_cast*>(nullptr)))>); static_assert(ex::detail::has_await_suspend_v(), - static_cast*>(nullptr)))>); + static_cast*>(nullptr)))>); static_assert(ex::detail::is_with_await_suspend_v< decltype(ex::get_awaiter(std::declval(), - static_cast*>(nullptr))), - ex::detail::env_promise>); + static_cast*>(nullptr))), + ex::detail::env_promise>); // clang-format on static_assert(ex::is_awaitable_v>); + ex::detail::env_promise>); static_assert(ex::is_awaitable_v>); + ex::detail::env_promise>); static_assert(ex::is_awaitable_v>); + ex::detail::env_promise>); static_assert(ex::is_awaitable_v>); + ex::detail::env_promise>); #endif } @@ -358,7 +349,7 @@ int main() static_assert(ex::is_sender_v); static_assert(ex::detail::is_enable_sender_v); static_assert( - ex::detail::is_sender_plain_v); + ex::detail::is_sender_plain_v); #endif static_assert(ex::is_sender_v); static_assert(ex::is_sender_v);