This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

typeid


The output of the program 

#include <typeinfo>
#include <iostream>

class test {};

class long_test {};

int main()
{
  test a;
  long_test b;
  cout << typeid(a).name() << endl;
  cout << typeid(b).name() << endl;
  return 0;
}

under the original gcc in the Cygwin B20.1 and under gcc 2.95.2
(Mumit Khan) is as follows

4test
9long_test

where there is a number (number of bytes in the name, as far as I 
understand) before a class name.

Is it a feature or a bug?

Evgenii Rudnyi
-- 
Chemistry Department     rudnyi@comp.chem.msu.su
Moscow State University  http://www.chem.msu.su/~rudnyi/
119899 Moscow            +7(095)939 5452, fax+7(095)932 8846,+7(095)939 1205
Russia

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]