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

List:       pykde
Subject:    Re: [PyQt] SIP 4.19+ and private destructors
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2017-04-02 10:51:11
Message-ID: 555174FE-740B-49E6-BF01-8745DB109D9A () riverbankcomputing ! com
[Download RAW message or body]

On 1 Apr 2017, at 12:51 pm, Raphael Kubo da Costa <rakuco@FreeBSD.org> wrote:
> 
> After sip change 1688:71a8ee38b2c6 ("Fixed a regression in determining
> when a shadow class should be generated") I'm having problems with
> QObject-derived classes that define a private destructor.
> 
> For example, the following excerpt:
> 
>  %Module C
>  %Import QtCore/QtCoremod.sip
>  class C : public QObject {
>  private:
>    ~C();
>  };
> 
> generates a "class sipC : public  ::C", that fails to build because C's
> destructor is private. Before that change, sip would just generate code
> creating and manipulating C directly.
> 
> Was that intentional or is this an actual bug?

Bug - should be fixed in tonight's snapshot.

Thanks,
Phil
_______________________________________________
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