Hi Phil,

A SIP specification file like

class Klass
{
public:
        // The following constructor is part of the C++ interface.
        Klass();
        // I want to add a constructor which takes a Numerical Python
        // array.  There is no equivalent in C++.
        Klass(SIP_PYOBJECT) [()];
%MethodCode
                sipCpp = new sipKlass();
                // set the data in Klass to that of the NumPy array.
%End
};

makes SIP duplicate the code for sipKlass() in the .h and .cpp file.
After removing the duplications by hand, the code compiles and runs
fine.

Gerard

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to