
On 01/05/2011 20:39, Phil Bouchard wrote:
On 5/1/2011 10:52 AM, Mathias Gaunard wrote:
The documentation doesn't seem to address the problems cycles cause with destructors, could you maybe write a bit about that?
No problem. I just added a noted to the cyclic section: https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/doc/rationa...
This is not what I meant. When you have a cycle, the order in which destructors are called cannot be specified. This makes it impossible to guarantee that the object held by a block_ptr won't have been destructed in the destructor of a class that has a block_ptr as a member. Meaning many uses of block_ptr could easily turn out to be invalid, and that not everything is suitable for use with block_ptr.