Boost logo

Boost :

Subject: Re: [boost] [exception] warning about non-virtual destructor - resolution?
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-04-16 15:01:29


On Sun, Apr 15, 2012 at 12:55 PM, Daniel James <dnljms_at_[hidden]> wrote:

> On 15 April 2012 20:00, Emil Dotchevski <emildotchevski_at_[hidden]> wrote:
> >
> > I'm pretty sure that this warning shouldn't be dealt with within the
> > shared_ptr framework, since it does seem to refer specifically to the
> > boost::error_info's destructor.
>
> The issue isn't just in exception, the warning also occurs in the
> shared_ptr unit tests.
>
> > Does anyone have a simple cpp file and an
> > exact g++ command line that triggers the warning?
>
> demo.cpp:
>
> #include <boost/checked_delete.hpp>
> #include <boost/exception_ptr.hpp>
>
> Compiled with:
>
> g++-mp-4.7 -c -Wall -I $BOOST_ROOT demo.cpp
>

Compiling this with g++ 4.7 on Windows produces no console output with the
following command line:

g++ -c -Wall demo.cpp

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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