[PyQt] [SIP] template based return value

Denis Rouzaud denis.rouzaud at gmail.com
Wed Apr 4 01:38:40 BST 2018


Thanks Phil.
I guess that I could do a small hack by returning an integer here instead
of an enum entry.

Cheers,
Denis

Le lun. 2 avr. 2018 à 10:35, Phil Thompson <phil at riverbankcomputing.com> a
écrit :

> On 2 Apr 2018, at 1:30 pm, Denis Rouzaud <denis.rouzaud at gmail.com> wrote:
> >
> > Hi all, hi Phil,
> >
> > I have a C++ template based method as follows:
> >
> > template<class T>
> > T myMethod( T &myVar );
> >
> > In this method, T is expected to be an enum (not knowing which enum of
> course).
> >
> > I get a syntax error when I use the same code in sip.
> >
> > Is there a way to get around this?
> > I suspect that's not possible, but would like to be sure!
>
> You are right I'm afraid. I consider it a bug but I haven't got around to
> fixing it.
>
> Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180404/706a60c2/attachment.html>


More information about the PyQt mailing list