Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-10-05 10:14:04

cppljevans_at_[hidden] wrote:
> On 10/04/2003 05:02 PM, Philippe A. Bouchard wrote:
>> Hi Boost,
>> I am currently revising shifted_ptr<> and I am asking myself if
>> it is worth keeping three distinct cyclic reference solutions.
>> Let's analyse the situation:
>> 1) shifted_ptr is optimized purely for garbage collection:
>> + cyclic references on the heap will automatically be deleted;
> Please see
> It contains a test for cycle collection for all three collection
> methods. Only the os_collector collects the cycles, and I think
> this is because it may delete a live pointee. Please check the
> code and see if I'm mistaken.

This is exactly how it works... (beside node::n which was not defined).


Boost list run by bdawes at, gregod at, cpdaniel at, john at