I'm currently working on some logging code that supposed to – among other things – print information about the calling function. This should be relatively easy, standard C++ has a
type_info class. This contains the name of the typeid'd class/function/etc. but it's mangled. It's not very useful. I.e.
Is there a way to produce something useful from this? Like
std::vector<int> for the above example. If it only works for non-template classes, that's fine too.
The solution should work for gcc, but it would be better if I could port it. It's for logging so it's not so important that it can't be turned off, but it should be helpful for debugging.