|
Boost : |
Subject: Re: [boost] aligned_storage in unions
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-09-22 16:34:51
On 09/22/10 15:03, Mathias Gaunard wrote:
[snip]
> A first try is to ask GCC if you break the strict aliasing rules.
> Compile some test code with -O3 -Wstrict-aliasing and see if it says
> something.
It's doesn't complain, as shown in attachment.
Of course I realize that just means gcc didn't detect
a violation of the rule, not that there actually
wasn't any violation ;)
The code tested should be:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk