
16 Apr
2012
16 Apr
'12
11:49 a.m.
On Mon, Apr 16, 2012 at 11:20 AM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> 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