Boost logo

Boost :

Subject: Re: [boost] [shared_ptr] Where is the bug?
From: Matthew L. Creech (mlcreech_at_[hidden])
Date: 2008-10-03 02:30:58


On Fri, Oct 3, 2008 at 2:26 AM, vicente.botet <vicente.botet_at_[hidden]> wrote:
>
> EXIT STATUS: 0
> Where is the bug?
>

If you're wondering why X's destructor isn't run, you need to make B's
destructor virtual:

http://www.parashift.com/c++-faq-lite/virtual-functions.html#faq-20.7

-- 
Matthew L. Creech

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk