Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2002-04-19 16:07:10


"David B. Held" <dheld_at_[hidden]> wrote in message
news:a9q060$gci$1_at_main.gmane.org...
> [...] The only thing I can think of is that the c'tor for
> shared_ptr<T>(intrusive_ptr<T>) could increment the object's count if
> the shared_count == 0.

That's a really dumb idea. Then nobody would delete the object, unless
you made shared_ptr check for a ref-counted object, which doesn't seem
likely.

Dave


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