Glad you got it working.  Note, though, that in your sample code SWIG never sees the declaration of your class because it’s within %{ }%.  Thus it has no way of knowing about its constructors.





From: Christopher Botos []
Sent: Thursday, May 23, 2013 9:48 AM
Cc: Steinfelt, Erik; Tully, Gregory
Subject: [Swig-user] Fwd: Re: std::vector of class with no default constructor


Thanks so much, Vadim.  There were three such compile errors and this fixed two of them.
Adding the following fixed the third:

    %ignore std::vector<CppClassName>::pop;

With this, it compiled and worked!

Thanks, again.