Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-10-05 11:20:16


cppljevans_at_[hidden] wrote:
> On 10/05/2003 10:14 AM, Philippe A. Bouchard wrote:
> [snip]
>>
>> This is exactly how it works... (beside node::n which was not
>> defined).
>>
> Yeah, node::n was a legacy from before node was made a template
> on the gc method.
>
> Anyhow, I can't see a difference between rc_collect and gc_collect.
> They
> both fail to collect cycles. Could you summarize the difference
> between
> them?

Yes of course. The garbage collector implemented in shifted_ptr.hpp is a
quite simple example which only postpone the destruction of memory
allocations. It only accumulates up to a 100 std::free(void *) calls, it
does not deal with cyclic references unfortunately.

Philippe


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