
28 Aug
2008
28 Aug
'08
9:21 p.m.
Michael Marcin wrote:
Sebastian Redl wrote:
I think scoped_ptr should have a release(). It's technically impossible to add a useful one to the refcounted smart pointers.
It works for refcounted smart pointers iff p.unique() == true. Well, the "useful" part of my post is a matter of opinion, of course, but I can't think of a case where I would want a release() that might fail, ergo it's not useful.
Sebastian