
21 Mar
2006
21 Mar
'06
1:53 a.m.
On 3/20/06, Nat Goodspeed
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