31 Aug
2013
31 Aug
'13
4:16 p.m.
On 8/31/2013 11:48 AM, Phil Bouchard wrote:
On 8/31/2013 11:14 AM, Phil Bouchard wrote:
It keeps track of the order of construction and so their are deleted in the order of construction so that their members are deleted first. It also blocks before an attempt to delete a heap object that is already being marked for deletion as you can see in ~block_ptr(): https://svn.boost.org/svn/boost/sandbox/block_ptr/boost/block_ptr.hpp
*It keeps track of the order of construction and so they are deleted...
So if you have a cyclic list, it will be deleted in the correct order. -Phil