19 Apr
2013
19 Apr
'13
3:29 p.m.
I've noticed that WaitHandler can be called after boost::asio::deadline_timer destruction. It may cause using of uninitialized data. Are there any other solutions of graceful destruction of boost::asio::deadline_timer to be sure that after this destruction WaitHandler will never be called?
Yes, the solution is to use shared_from_this idiom.