Boost logo

Boost :

From: Alan Griffiths (alan_at_[hidden])
Date: 1999-07-26 14:43:13


In message <v04020a01b3bede4f3570@[206.224.81.146]>, Chelly <postmast.ro
ot.admi.gov_at_[hidden]> writes
>At 01:43 PM -0500 1999.07.23, Andy Glew wrote:
>>>At 03:55 PM 7/22/99 -0700, Reid Sweatman wrote:
>>>>Anyway, I support your notion of a requested/in progress page for
>>>>the site.
>>
>>I hope that nobody minds if I submit the following request?
>>Maybe one of you can point be to existing code; or maybe
>>I will be shamed enough to write it.
>>
>>Today's request: live_ptr
>>
>>live_ptr<T>
>>
>> A live_ptr is a variety of smart pointer that does not deallocate
>> the object pointed to as long as there is a reference, etc. I.e.
>> it is not a garbage collecting or reference counting pointer.
>>
>> Instead, a live_ptr points to the object as long as the object lives;
>> when the object pointed to dies (is destroyed), then the live_ptr
>> is set to 0.
[snip]
>
>You know, this is funny, because I was working on a whole family of this
>exact thing a few days ago. The watched object must exist before the

I too have something similar - see:

    http://www.octopull.demon.c.uk/arglib/uncounted_ptr.html

-- 
Alan Griffiths  (alan_at_[hidden])  http://www.octopull.demon.co.uk/
ACCU Chairman   (chair_at_[hidden])             http://www.accu.org/

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