Skip to content

Commit

Permalink
Make the connect_awaitable opstate immovable
Browse files Browse the repository at this point in the history
I noticed while doing other things that the opstate returned from
`connect_awaitable()` has a move constructor. This diff deletes it.
  • Loading branch information
ispeters committed May 14, 2024
1 parent 8fd4b0c commit 240c0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/unifex/connect_awaitable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class _sender_task<Receiver>::type {
explicit type(coro::coroutine_handle<promise_type> coro) noexcept
: coro_(coro) {}

type(type&& other) noexcept : coro_(std::exchange(other.coro_, {})) {}
type(type&&) = delete;

~type() {
if (coro_)
Expand Down

0 comments on commit 240c0cc

Please sign in to comment.