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

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.)




Boost list run by bdawes at, gregod at, cpdaniel at, john at