Quote:
Originally posted by PaulWendt
As I alluded to before, this might not work on your compiler. For
example, Mai's trick does not work on gcc-3.1.1. I get the
following compile-time error:
I toyed around with the this->T::T() part of the program and I was
able to get it to compile, but T() was never called [m_i printed out
as garbage on Visual Studio, but 0 on one of my gcc systems].
Thus, use Mai's trick only if you want to enter the uncharted
realm of unportability.
--Paul
On the Borland C++ Builder 6.0, you get this error: