[PyQt] Does sip support using.

Phil Thompson phil at riverbankcomputing.co.uk
Fri Sep 21 04:38:01 BST 2007


On Friday 21 September 2007, Matt Newell wrote:
> Does sip support using keyword as in the following
>
> class A
> {
> public:
> 	void a();
> 	void a(int);
> };
>
> class B : public A
> {
> public:
> 	using A::a;
> 	void a(int);
> }
>
>
> so you can call -
>
> o = B()
> o.a()
>
>
> You can achieve the same by declaring B as
> class B : public A
> {
> public:
> 	void a();
> 	void a(int);
> }
>
> but then it's out of sync with the header file and often adds a lot of
> extra for some classes.
>
> Sip barfed when I tried it, but I haven't upgraded in a while.
>
> If it's not implemented and not something you want to take the time to do
> atm, then I would consider writing a patch if you think it'll be accepted.

It's not implemented. I would be interested in a patch, but the generated code 
should not use it, ie. you can't assume that the target compiler supports it.

Phil


More information about the PyQt mailing list