Boost logo

Boost :

Subject: Re: [boost] [exception] warning about non-virtual destructor - resolution?
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2012-02-16 16:36:25


> > Or is it the position of the library maintainers that GCC is in error to
> > give a warning in this case, in which case I should file a GCC bug?
>
> I do believe that the compiler is in error to warn about this, since
> it complains about conscious and correct design decision. Given the
> fact that the base destructor is protected, the possibility of an
> error is remote at best.
>
> That said, I am have tried to remove all warnings from GCC. The Boost
> Exception headers use the system header pragmas which in theory should
> inhibit all warnings within the library. Last time I checked that was
> the case indeed, including with -Wall.
>
> Thank you for the report, I'll take a look again when time permits.
> Can you provide an exact command line?

Certainly.

Code:

#include <boost/thread/future.hpp>

Command line:

g++ -c test.cpp -Wall -I /path/to/boost

GCC version: 4.7.0, 2012-01-28 snapshot
Boost revision: 76729

Let me know if you need any more information.

Thanks,
Nate
                                               


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