diff --git a/include/unifex/spawn_future.hpp b/include/unifex/spawn_future.hpp index 087c72a3..c13ba370 100644 --- a/include/unifex/spawn_future.hpp +++ b/include/unifex/spawn_future.hpp @@ -745,10 +745,14 @@ struct _future_sender_from_stop_token::type final { std::printf("_future_sender_from_stop_token constructed (%p)\n", op); } + type(type&&) noexcept = default; + ~type() { std::printf("_future_sender_from_stop_token destructing (%p)\n", op_.get()); } + type& operator=(type&&) noexcept = default; + auto operator()(inplace_stop_token stopToken) noexcept { std::printf("invoking _future_sender_from_stop_token (%p)\n", op_.get()); return let_value_with(