Boost logo

Boost Users :

Subject: Re: [Boost-users] [Review] Formal Review: Boost.Move
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-05-21 04:32:02


On 21/05/2010 9:37, Neil Groves wrote:
> These reinterpret_cast operations violate the standard aliasing rules
> AFAICT. Indeed while most compilers work happily with this arrangement.
> I have reproduced defects with GCC 4.4 when optimizations are enabled.
> Additionally if one enables the strict aliasing warnings these lines are
> indicated as being incorrect.

What if we use static_cast? Does this solve any problem? I don't know
much about aliasing rules so can you shed some light on this?

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net