|
Boost : |
Subject: Re: [boost] [wave][function] Suppressing gcc-4.4.1 warnings
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-11-07 07:06:43
Gottlob Frege wrote:
> 1. Is
> static_cast<X *>(static_cast<void *>(&z))
> really any better than
> reinterpret_cast<X *>(&z)
> ?
No.
> 2. What is left for reinterpret_cast to do? casting to/from ints to
> pointers, etc? (useful in lockfree programming, etc).
Yes.
> Which would be better accomplished with unions I suppose.
No. :-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk