|
Boost Users : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-25 19:47:55
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net