
7 Nov
2009
7 Nov
'09
12:06 p.m.
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. :-)