
16 Feb
2006
16 Feb
'06
1:08 a.m.
On 2/15/06, Perry Smith
The first has the extra overhead of creating a second shared_ptr. The second worries me... It just seems like "reset" is not what I would call the method to do what I want to do (but maybe it is).
reset is exactly what you're looking for http://boost.org/libs/smart_ptr/shared_ptr.htm#reset int fun() { dog.reset( new int ); // ... } ~ Scott