[PyQt] SIP template-based class with argument having default constructor as default value

Denis Rouzaud denis.rouzaud at gmail.com
Thu Jun 22 15:24:16 BST 2017


Indeed that's how I handle these cases.
Thanks for the fix Phil.

Cheers,
Denis

Le jeu. 22 juin 2017 à 16:21, Phil Thompson <phil at riverbankcomputing.com> a
écrit :

> On 18 Jun 2017, at 5:54 pm, Shaheed Haque <srhaque at theiet.org> wrote:
> >
> > And in a similar vein again:
> >
> >
> >    template <Class>
> >    class SuperClass: SuperClassTrait<Class>
> >    {
> > %TypeHeaderCode
> > #include <AkonadiCore/Supertrait>
> > %End
> >        // Empty!
> >    };
> >
> > causes:
> >
> > ERROR: sip: tmp/AkonadiCore/Supertrait.sip:42: syntax error while
> > processing AkonadiCore/AkonadiCoremod.sip
>
> The current syntax for a super-class is very limited. I don't want to make
> significant changes this close to a release.
>
> You might be able to work around it by introducing a typedef...
>
> typedef SuperClassTrait<Class> SuperClassTraitClass;
>
> class SuperClass : SuperClassTraitClass
> {
> };
>
> Phil
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170622/3f265f0e/attachment.html>


More information about the PyQt mailing list