Boost logo

Boost :

Subject: Re: [boost] lots of warning with gcc-4.8.1 + boost-1.54.0
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-07-04 02:31:56

On 03/07/13 10:32, Jonathan Wakely wrote:
> On 3 July 2013 02:41, Nathan Ridge wrote:
>>> Lots of warnings like this:
>>> ./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally
>>> defined but not used [-Wunused-local-typedefs]
>>> when building 1.54.0 with gcc-4.8.1 (fedora f19)
>> This warning is new in GCC 4.8, and I have been seeing a ton of them
>> not just in boost, but in every codebase I've built.
> It was new in GCC 4.7,
> It affects Boost more than most code because of the prevalent use of
> concept checks and static assertions which are usually implemented
> using typedefs but only conditionally compiled.

Unused local typedefs is a real bug.
It's Boost that needs fixing IMHO.

If it's for a static assert trick, just write your trick differently to
not require it or just use one of the provided macros that do it right.

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