Boost logo

Boost :

Subject: Re: [boost] Age-based reference counting solves the problem of cyclic references?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-12-10 09:29:14

Achilleas Margaritis wrote:

> While the above example doesn't use reference counting, it can be combined
> with reference counting to solve the issue of cyclic references: objects
> that their reference count reaches 0 are deleted normally; objects with
> cycles remain in memory until the oldest pointer to them goes out of scope.

What if there are two objects A and B, and A's destructor references B
while B's destructor references A?

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