I\'m writing some template classes for parseing some text data files, and as such it is likly the great majority of parse errors will be due to errors in the data file, whic
As a rephrasing of Andrey's answer:
The Boost TypeIndex library can be used to print names of types.
Inside a template, this might read as follows
#include #include template void printNameOfType() { std::cout << "Type of T: " << boost::typeindex::type_id().pretty_name() << std::endl; }