|
Boost : |
From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-09-10 20:27:57
Larry Evans wrote:
> On Tue, 2002-09-10 at 17:11, Philippe A. Bouchard wrote:
>> I've cleaned up operator new()s and reference counts can now be mixed
>> with garbage collectors:
>> http://groups.yahoo.com/group/boost/files/ptr/
>>
>> Any comments are welcome.
>>
> I don't see any cycles in the pointer graph in placed_ptr_test.cpp.
It's the following:
{
placed_ptr<node> pN = new (gc) node();
pN->p = pN;
pN.clear();
}
remove pN.clear() and the node will never be destructed (cout of ~node()).
-- Philippe A. Bouchard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk