How to get proper text name of typeid()
- by Vincenzo
My code:
namespace test {
class MyTest {
};
}
MyTest a;
cout << typeid(a).name();
This is what I see (i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)):
N4test6MyTestE
Is there any platform-independent way to get something like test::MyTest instead of this string?