Boost logo

Boost Users :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-03-20 20:53:21


On 3/20/06, Nat Goodspeed <ngoodspeed_at_[hidden]> wrote:

[snip]

> Indeed, for our purposes, we don't WANT smart pointers in the registry.
> If the last smart-pointer reference to a heap object goes away, we don't
> want the reference in the registry to make the instance immortal. In
> that case, the smart pointer to the heap object decrements the count to
> 0, the object is destroyed, and its destructor unregisters the instance.

Couldnt be a weak_ptr ?

[snip]

--
Felipe Magno de Almeida

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net