|
Boost : |
Subject: Re: [boost] gcc-4.4.0 and boost::optional is giving (spurious?) strict-aliasing warnings
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-05-06 11:08:48
Brad Spencer wrote:
> Before I get to the details, let me start by saying that I suspect
> that these warnings are probably spurious. But, before I go and start
> asking the compiler folks if they are bugs, I'd like to check here
> first.
>
> If you take unmodified boost-1.38.0 and try to use boost::optional
> with gcc-4.4.0 -Wall -O3, you seem to get warnings about
> strict-aliasing rules being broken. If boost::optional (and
> boost::function) are really broken, then we're probably in trouble :)
Does it affect boost::variant too?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk