Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Christopher Botos <cbotos@ae...> - 2013-05-14 19:33:17
I'm trying to wrap several C++ structs, each of which has a constructor
with an initializer list.
One of them looks something like this:
/// default constructor
Note that the class "Date" does not have a default constructor.
When I compile it with swig, I get the following error:
In function ‘PyObject* _wrap_Measurements_dateStamp_get(PyObject*,
error: no matching function for call to ‘Date::Date()’
note: candidates are:PG::L2::LS::DateTime::DateTime(int, int)
There is an identical error for the "setter".
So this is correct ... there is no default constructor for Date, and I
cannot alter the code.
Any ideas on what might be wrong and how to fix it?
Christopher R. Botos
Sr. Software Engineer
Atmospheric& Environmental Research (AER)
131 Hartwell Avenue
Lexington, MA 02421