Boost logo

Boost :

Subject: Re: [boost] [TypeIndex] Peer review period for library acceptance begins, ending Thurs 21st Nov
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-11-15 10:04:51


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


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