How to store TypeInfo
<pre><code>  class A {}
  A a;
  type_info info = typeid (a); // error type_info is private
</code></pre>

<p>i want a list <code>list&lt;type_info&gt;</code> to store the type of classes. Is there a solution?</p>
