Possible Duplicate:
CLASS macro in C++
Hello, are there any ways to get name of class with macro like __FUNCTION__ for function name? The only ideas I have is inheriting some base class with pure virtual toString and define the names by hands eash time. Thanks.
Use a macro to define the class:
Ugly hack but the best I can think of.