Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::asio::deadline_timer destruction
From: Igor R (boost.lists_at_[hidden])
Date: 2013-04-19 11:29:51


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net