Boost logo

Boost :

From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2001-04-06 12:10:31


IMO shared_ptr needs a "release()" member function. Why? because I need to
hand off the memory it holds to a regular pointer, which then will take full
ownership.

So when I want to hand off the pointer that shared_ptr holds, I can't. (Well
I can get a copy of the pointer, but then shared_ptr goes out of scope and
deletes the memory, thank you, and the next access crashes.)

  Objections?

  -gary-

gary.powell_at_[hidden]


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