chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.85k stars 1.2k forks source link

Make cancellation_signal movable #1228

Open RaphiaRa opened 1 year ago

RaphiaRa commented 1 year ago

cancellation_signal is currently not movable, making it a bit cumbersome to use for my case. I tried adding the move assignment operator and constructor. It seems to work for my project. However, I don't know how the handler destruction here works, so there might be more things that need to be taken care of...