Moin Moin.
> Hi,
> someone knows if the Barton & Nackman Trick works fine in SGI
MIPS
Ok (i.e. I know the solution. By the way this is some of the coolest
Templatestuff I have seen till now.).
> Pro compiler?.
>
> I'm tryin to compile the next code:
> ---------------------------------------------------------------------
> template<class T_mesh>
> class Mesh {
> public:
> Mesh() {
> Dimension = asLeaf().getDimension();
> cout << " Mesh: Dimension = " <<
Dimension << endl; }
>
> ~Mesh() {}
>
> T_mesh& asLeaf() { return static_cast<T_mesh&>
(*this); }
My question being: Should this be a reinterpret_cast or not, and, if so,
why.
Tschuess,
Michael.
--------------------- 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