26 Jul
2008
26 Jul
'08
1:17 a.m.
On Fri, Jul 25, 2008 at 11:47 PM, Steven Watanabe
AMDG
Brad Anderson wrote:
I am curious, though, about why the leaks only happened in when I deserialized and not in any of the other instances I created myself. Does shared_ptr perform some kind of trickery to detect the type to delete through, even when the shared_ptr is typed for the base class?
Yes. A shared_ptr captures the type to delete through when it is constructed.
In Christ, Steven Watanabe
Good to know. Thanks.