I know that you can get a reference to a static method like this:
typedef void (*pointer)();
pointer p = &MyClass::MyMethod;
But is there a way to get a reference to the class itself?
EDIT: I'd like to store a class name to a variable so i could instantiate different kinds of objects based on the current value of the variable to a buffer or a list. I could then perform operations on the list of objects (using polymorphism).