$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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