El Tue, 7 May 2002 09:19:31 -0700 (PDT)
Noel Yap
It looks like it's working find with gcc-2.95.3-5. One thing, though, it gave me a compiler error when I didn't #include <typeinfo>. Since you didn't list which header files you're including, I'm not sure if you're including <typeinfo> or not and what the Borland's behaviour would be if you didn't.
I tried a different version in gcc 3.0.3 and I think it works find.
The modified code is:
________________________________________
int main(int argc, char* argv[])
{
std::cout
<< typeid(trait<int>::t1).name()
<< std::endl
<< typeid(trait1