title: Array of shared pointers to different classes
body: <p>I'm trying to figure out if it is possible to create an array of shared pointers to different types.
  For example, something like that:</p>
  
  <pre><code>vector&lt;shared_ptr&lt;**???**&gt;&gt; v;
  v.push_back(shared_ptr&lt;int&gt;(new int));
  v.push_back(shared_ptr&lt;MyClass&gt;(new MyClass()));
  </code></pre>
  
  <p>or any other way to pass <code>shared_ptr</code> without knowing its type.</p>