Boost logo

Boost :

Subject: Re: [boost] [exception] warning about non-virtual destructor - resolution?
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-04-16 15:42:27

Le 16/04/12 21:01, Emil Dotchevski a écrit :
> 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
Hi, the warning appears while running the regression test on trunk for

Maybe you could try adding -Wextra -pedantic and maybe -fpermissive.


Boost list run by bdawes at, gregod at, cpdaniel at, john at