Boost logo

Boost :

Subject: Re: [boost] boost/pool/pool.hpp why reinterpret_cast instead of static_cast?
From: David Abrahams (dave_at_[hidden])
Date: 2009-03-12 09:57:49


on Thu Mar 12 2009, Philippe Vaucher <philippe.vaucher-AT-gmail.com> wrote:

>>
>> It is my understanding that void* to T* convertions should be done using
>> static_cast and not reinterpret_cast.
>
>
> No one knows? No one cares?

I care; it's one of my favorite axen to grind. Yes, avoid
reinterpret_cast unless you really want implementation-defined behavior.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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