Boost logo

Boost Users :

From: Brad Anderson (eco.was.too.short_at_[hidden])
Date: 2008-07-25 21:17:00


On Fri, Jul 25, 2008 at 11:47 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> 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.



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