15 Nov
2013
15 Nov
'13
3:04 p.m.
AMDG On 11/15/2013 05:50 AM, Antony Polukhin wrote:
But this error appears only when we mutate data ( https://svn.boost.org/trac/boost/wiki/Guidelines/WarningsGuidelines search for "strict-aliasing rules")
...and can be arbitrarily broken by (unknown) future optimizations, with no recourse. We wouldn't have all the problems with strict aliasing that we do today if programmers 10 years ago hadn't made exactly the same argument that you are, now. (Sure, it's undefined behavior, but we know what the compiler actually does, so it's really okay...). In Christ, Steven Watanabe