title: Swig wrapper for golang
body: <p>I'm having trouble to use swig to wrap a c++ library for golang. Here is my c++ header file.</p>
  
  <pre><code>class Builder {
   public:
    explicit Builder(int i):counters(i){} 
    void Init(); 
    void CreateCounters(vector&lt;std::unique_ptr&lt;int&gt;&gt;* s);
    bool CreateEntry(string* primary_key);
   private:
    std::shared_ptr&lt;hash_set&lt;string&gt;&gt; ids;
    int counters;
  };
  </code></pre>
  
  <p>I just want to wrap Builder class and its constructor, Init() and CreateEntry function. Here is my swig API</p>
  
  <pre><code>%{
  #include "builder.h"
  %}
  
  %ignoreall
  
  %unignore Builder;
  %unignore Builder::Init();
  %unignore CreateEntry(string* primary_key);
  
  %include "builder.h"
  
  %unignoreall
  </code></pre>
  
  <p>But when I compile I get error pointing to the CreateCounters function which has a argument of unique_ptr vector. Can anyone tell me whats wrong in here?</p>
  
  <p>Thanks in advance :)</p>