
On Thu, Dec 17, 2009 at 5:10 PM, Emil Dotchevski <emildotchevski@gmail.com> wrote:
On Thu, Dec 17, 2009 at 10:07 AM, Giovanni Piero Deretta <gpderetta@gmail.com> wrote:
[snip]
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 reinterpret_cast!"
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. http://www.revergestudios.com/reblog/index.php?n=ReCode
Regards, -- Felipe Magno de Almeida