[PyQt] How to derive from a %MappedType?
Shaheed Haque
srhaque at theiet.org
Thu May 25 23:16:47 BST 2017
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
More information about the PyQt
mailing list