Hey.
I generally see two ways of doing what you wish (there might be more of course):
1. Use
Run-Time Type Information[
^], see the link for more details. You could try using the
type_info[
^] class'
name() method.
2. Have a -potentially virtual- function in your classes that can return a string-representation of the class and implement this in every class you use with that template. E.g:
class CMyClass
{
...
virtual LPCTSTR GetClassDebugName() const { return "CMyClass"; }
...
};
...
LPCSTR typname= pT->GetClassDebugName();
...