
28 Aug
2008
28 Aug
'08
4:27 p.m.
Sebastian Redl wrote:
Phil Bouchard wrote:
As it turns out I think a release() member function should be added to the smart pointer. Which smart_ptr?
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. Thanks, Micahel Marcin