1 2 3 4 5 6 7 8 9 10 11
#include <typeinfo> struct A { virtual ~A() {} }; int main() { A* a = new A; typeid(*a).name(); }