Ok this is a really interesting question that could be rather useful in the right situations but I'm not sure if it's possible.
I've been doing a little reading on macros for something else when I came across "stringification". The tutorial says that if I define a macro to a certain value or string I can convert this macro to what it defines by using the '#'.
i.e.
1 2
#define MAC "macroString"
cout << "Macro MAC contains: " << #MAC << endl;
macroString
So... Is it possible to create classes using a the definition of the macro to setup the class name?
i.e.
1 2 3 4
#define MAC "Object"
class #MAC{
//class definition
}
Would this work (if it works at all) with the same functionality as: