Boost logo

Boost :

Subject: Re: [boost] aligned_storage in unions
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-09-22 17:07:48


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.

When Compiling the attached, gcc doesn't complain.
I thought surely it would since p10 and p20 both
point to the same location but they're different
types.

What am I missing?

-Larry




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