is portable aliasing possible in C++?

Andrew Haley aph@redhat.com
Fri Sep 5 07:16:00 GMT 2014


On 05/09/14 00:11, Jonathan Wakely wrote:
> FWIW I prefer the memcpy approach, it usually generates the same code
> as type punning via a union,

You wouldn't say that if you'd tried the test code provided by the OP.

Andrew.



More information about the Gcc-help mailing list