diff --git a/include/unifex/connect_awaitable.hpp b/include/unifex/connect_awaitable.hpp index b5b1ef43..3ec21c8f 100644 --- a/include/unifex/connect_awaitable.hpp +++ b/include/unifex/connect_awaitable.hpp @@ -110,7 +110,7 @@ class _sender_task::type { explicit type(coro::coroutine_handle coro) noexcept : coro_(coro) {} - type(type&& other) noexcept : coro_(std::exchange(other.coro_, {})) {} + type(type&&) = delete; ~type() { if (coro_)