"Michael Soliman" <msoliman@intera.de> writes:
| > T_mesh& asLeaf() { return static_cast<T_mesh&>
| (*this); }
| My question being: Should this be a reinterpret_cast or not, and, if so,
| why.
Hi,
static_cast<> is just fine.
reinterpret_cast<> is actually when you want to perform a non-portable
cast, using an implementation defined definition for. the result
Among all new-style casts, reinterpret_cast<> is the worst.
-- Gaby
--------------------- Object Oriented Numerics List --------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/oon/
* If this doesn't work, please send a note to owner-oon-list@oonumerics.org
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:16 EST