[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] How to derive from a %MappedType?
From:       Shaheed Haque <srhaque () theiet ! org>
Date:       2017-05-27 15:00:42
Message-ID: CAHAc2jdWvmXtnn9kqLW8BTuTqE6KHjZVoLV4845torDca+o5nw () mail ! gmail ! com
[Download RAW message or body]

Hi Phil,

On 26 May 2017 at 16:47, Shaheed Haque <srhaque@theiet.org> wrote:
>
>
> On 26 May 2017 13:26, "Phil Thompson" <phil@riverbankcomputing.com> wrote:
>
> On 25 May 2017, at 11:16 pm, Shaheed Haque <srhaque@theiet.org> wrote:
>>
>> 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?
>
> Current hg (and tonight's snapshot) should parse it. I haven't tested the
> generated code - but (given it already works with namespaces) it has a
> reasonable chance of working.
>
> Phil
>
>
> Cool. I will take a look. Thanks!
>

I patched my code with the change, and it now compiles! (I'm still not
really looking at the generated code, for now, I'm happy to get it
compiling).

Thanks, Shaheed
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic