|
|
|
|
|
by brandmeyer
3981 days ago
|
|
Strictly speaking accessing that union both ways ~~~violates the strict aliasing rules~~~ isn't portable. However, it is such a common idiom that GCC and other compilers explicitly allow using unions to get around the strict aliasing rules, so long as the access is always performed through the union. |
|
http://stackoverflow.com/questions/11639947/is-type-punning-...