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