|
Boost : |
From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-09-17 09:35:58
Philippe A. Bouchard wrote:
>Hi,
>
> I do not know why I haven't thought of this one before but I've
>implemented ownership support in placed_ptr<>. Now I would suggest
>container writers to use ownership for their node allocations... this way
>cyclic reference counts could be easily avoided. placed_ptr<>::clear() has
>
>
>
This sounds somewhat like the method in Laine Stump's article in
_EXE_, vol. 7, Issue 10 on April 1993. The article's title is:
"Garbage Collection in C++". Could you get a copy of this and see how
it compares? For example, Laine uses a class, tGCPtr, where "Each
tGCPtr has a second tGCObject* which points to the object containing
this tGCPtr (its 'parent') or contains 0 if the tGCPtr is global or
auto". This 2nd member sounds like your placed_ptr_header ::m_owner.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk