Hi,
I have a question about the RTTI library typeinfo. I used typeinfo to qurry the type of an int as in the following,
...
#include <typeinfo>
....
int i;
cout << typeid.name();
...
This is suppose to produce int as output but instead I got i, the name of the integer object I declared instead of the name of the type itself (int in this case)
Any expert advice?
Thanks a lot,