Subject: Re: [boost] [foreach] Warning with gcc-4.6.0 and -Wconversion
From: Yechezkel Mett (ymett.on.boost_at_[hidden])
Date: 2011-05-05 06:06:22
On Wed, May 4, 2011 at 5:29 PM, Philipp Reh <sefi_at_[hidden]> wrote:
> gcc-4.6.0 made Boost.foreach unusable in 1.46.1 because the rvalue detection
> no longer works. Now, there is a fix in trunk for it but it has a nasty side
> effect, namely a warning that is emitted whenever foreach is used with an
> rvalue and -Wconversion is turned on. Sadly, this warning cannot be ignored
> by including Boost with -isystem because the code is generated by a macro,
> I would be glad if this could be fixed somehow because -Wconversion is a
> crucial warning option to me.
Perhaps the new #pragma GCC diagnostic would be useful here.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk