From: Nitro <ni...@dr...> - 2009-11-01 13:15:10
|
Hello, suppose I have two classes like this and turn on directors for the derived one: class BaseClass { BaseClass(int a); }; class MyClass : virtual public BaseClass { public_ MyClass( int a ); }; %feature("director") MyClass; The code swig will generate looks like SwigDirector_MyClass::SwigDirector_MyClass(PyObject *self, int a): MyClass(a), Swig::Director(self) { ... } This fails to compile, because it should look like SwigDirector_MyClass::SwigDirector_MyClass(PyObject *self, int a): MyClass(a), BaseClass(a), Swig::Director(self) { ... } Notice the additional call to the BaseClass(int) constructor. How can I tell swig to insert BaseClass(a) there? -Matthias |