Re: is portable aliasing possible in C++?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/09/14 00:12, haynberg@xxxxxxxxx wrote:

> So it would seem the answer is no, portable aliasing is not possible
> in C++.  Though I wonder if it should be (with a new language
> feature).

In practice, a union is exactly that, and I've not heard of a compiler
which doesn't do the right thing.  Given that it's explicitly legal in
C11, I can't see any reason which C++ shouldn't simply adopt the same
language.

Andrew.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux