|
Boost : |
From: David B. Held (dheld_at_[hidden])
Date: 2002-04-19 15:54:25
"Fernando Cacciola" <fcacciola_at_[hidden]> wrote in message
news:a9pv1b$eiu$1_at_main.gmane.org...
> [...]
> *px3 ; // undefined behavior, pointee no longer alive.
> [...]
Ouch. I guess that's what happens when two different people have
different ideas on who is responsible for ownership. 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.
Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk