The name returned by typeid::name is compiler specific and for some compiler it is something horrible (like i
for int
). Most compilers support demangling of names which leads to a nicer representation, but still is useless for programmatic use.
Here is a list of demangling APIs for common compilers: