title: How to use PERL XS to call a C++ function that takes in a STL Vector
body: <p>I have been using PerlXS to write a perl wrapper around a C++ Object. Usually my fcn takes in a string/int etc and I can just make them with no problem. I just write code like this in the .xs file</p>
  
  <pre><code>MyClass::func_a(std::string a, int b);
  </code></pre>
  
  <p>This time; I have a need to have a function that takes in a stl vector</p>
  
  <pre><code>MyClass::func_a(std::vector&lt;std::string&gt; vector)
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>conversion from `SV*' to non-scalar type 
    `std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt;'
  </code></pre>