$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [exception] warning about non-virtual destructor - resolution?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-04-16 07:49:34
On Mon, Apr 16, 2012 at 11:20 AM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:
> I don't see what this has to do with abstract classes.
>
> struct A { virtual void foo() {} };
> struct B : A {};
>
> boost::shared_ptr<A> p(new B);
>
> should issue that warning.
Right, but if make_shared<B> is used, it should not.
Olaf