Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2003-01-08 00:55:41


Peter Dimov wrote:
> From: "Larry Evans" <jcampbell3_at_[hidden]>
[snip]
>>This scan will also have to follow plain pointers.
>
>
> Plain pointers would have to be followed by a real collector, but why should
> a "simple cycle-breaker" bother?

The iplimits.txt file in the shared_cyclic_ptr files directory also illustrates
why raw pointers need to be followed. Search for:

   2)"pointer cycle with raw cut" -

This also hints at what was lacking in Detlef's article: an explanation
of how to handle containers of smart pointers. This is handled by the
shared_cyclic_container template defined in shared_cyclic_ptr.hpp.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk