Subject: Re: [boost] [optional] Strict Aliasing Warnings on Trunk
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2009-12-17 16:57:10
On Thu, Dec 17, 2009 at 5:10 PM, Emil Dotchevski
> On Thu, Dec 17, 2009 at 10:07 AM, Giovanni Piero Deretta
> <gpderetta_at_[hidden]> wrote:
> We had a discussion about warnings some time ago, I think this is an
> excellent example of a warning that warns about something important
> yet it is completely useless. To someone who doesn't know the
> semantics of reinterpret_cast, perhaps the warning has some value, but
> for the rest of us what it really says is "Warning! You have used
I don't get it why we use reinterpret_cast in the first place.
Shouldn't it be static_cast<U*>(static_cast<void*>(x)) ?
> Emil Dotchevski
> Reverge Studios, Inc.
-- Felipe Magno de Almeida
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk