title: Boost Python and vectors of shared_ptr
body: <p>I've read how to expose normal vectors to python in boost python, but I want to know how to expose and make use of a vector. For instance, I have a vector of shared_ptrs as follows:</p>
  
  <pre><code>std::vector&lt;shared_ptr&lt;StatusEffect&gt; &gt; Effects;
  </code></pre>
  
  <p>Based on the material for exposing vectors, I should be able to expose this type of class. What I want to know is how can I actually add to it? How do I create instances of <code>shared_ptr&lt;StatusEffect&gt;</code> since I don't have access to new, and the shared_ptr can point to multiple derived types making adding a static creation method to each class a little tedious.</p>
  
  <p>Does anyone have some pointers or can suggest how to do this? Finding good example for boost::python for what I want to do has been abit tricky</p>
  
  <p>Thanks in advance</p>