$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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]