Re: [PyQt] Template class with private assignment operator

2011-04-06 Thread Phil Thompson
On Mon, 04 Apr 2011 22:43:54 +0200, Lorenzo Masini wrote: > Il giorno ven, 01/04/2011 alle 12.09 +0100, Phil Thompson ha scritto: >> Using the /NoRelease/ mapped type annotation will suppress the generation >> of the assign_ helper, but it will also has an effect on calling the >> type's >> dtor.

Re: [PyQt] Template class with private assignment operator

2011-04-04 Thread Lorenzo Masini
Il giorno ven, 01/04/2011 alle 12.09 +0100, Phil Thompson ha scritto: > Using the /NoRelease/ mapped type annotation will suppress the generation > of the assign_ helper, but it will also has an effect on calling the type's > dtor. Is that Ok, or is a separate /NoAssign/ annotation needed? Thanks

Re: [PyQt] Template class with private assignment operator

2011-04-01 Thread Phil Thompson
On Thu, 31 Mar 2011 11:03:14 +0200, Lorenzo Masini wrote: > Hi everyone > I have a %MappedType which has the operator= private. > Sip generates assing_* code that uses the assignment operator, so the > generated cpp doesn't compile. > Is there a way to define the assign_* method in order to not us

[PyQt] Template class with private assignment operator

2011-03-31 Thread Lorenzo Masini
Hi everyone I have a %MappedType which has the operator= private. Sip generates assing_* code that uses the assignment operator, so the generated cpp doesn't compile. Is there a way to define the assign_* method in order to not use the assignment operator and raise a python exception instead? Best