[PyQt] [SIP] template based return value

Denis Rouzaud denis.rouzaud at gmail.com
Mon Apr 2 13:30:56 BST 2018


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!

Cheers,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180402/61bb437e/attachment.html>


More information about the PyQt mailing list