[PyQt] How to derive from a %MappedType?

Denis Rouzaud denis.rouzaud at gmail.com
Fri May 26 13:36:50 BST 2017


Hi Shaheed,

Are you talking about a SIP code generator?
Are you able to show the source?

We (qgis) are building one at the moment for qgis source code. It is aimed
to work only with our source code syntax but it would be interesting to
compare the approaches.

Cheers

Denis
https://github.com/qgis/QGIS/blob/master/scripts/sipify.pl



Le ven. 26 mai 2017 à 00:17, Shaheed Haque <srhaque at theiet.org> a écrit :

> Hi Phil,
>
> I'm finally looking to extend my generator to handle templated
> classes, and am finding a curious result from some initial tests. As
> per the example you provided, this SIP compiles just fine:
>
> template<T>
> class MyTemplate
> {
> public:
>     MyTemplate();
> };
>
> The issue is that nesting in an OuterClass like this gives a syntax error:
>
> class OuterClass
> {
> template<T>
> class MyTemplate
> {
> public:
>     MyTemplate();
> };
> };
>
> Nesting in a namespace compiles just fine. Is that expected?
>
> Thanks, Shaheed
> _______________________________________________
> 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/20170526/b5760a40/attachment.html>


More information about the PyQt mailing list