title: C++ class pointer
body: <p>I know that you can get a reference to a static method like this:</p>
  
  <pre><code>typedef void (*pointer)();
  pointer p = &amp;MyClass::MyMethod;
  </code></pre>
  
  <p>But is there a way to get a reference to the class itself? </p>
  
  <p>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). </p>