25 Jul
2008
25 Jul
'08
11:47 p.m.
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