I have a simple class, representing a functor:
When generating a wrapper for this class, the implementation of operator() is broken. I therefore remove it via the typesystem's XML file and replace it with a different implementation snippet:
This should, in theory, add a function named Sbk_bje_model_ChannelConfigurationFunctorFunc___call__ to the wrapper, as well as mark this function as this object's implementation of Python's __call__ method.
The generated function, however, has a different name:
Also, note the empty block where the call to operator() should be made. There should be a snippet of code from my glue code file.
When I rename the function to __call__ in the XML file, the generated function has the expected name (as well as the snippet correctly inserted), but is not marked as this object's __call__ implementation:
|For Gerrit Dashboard: PYSIDE-995|
|258920,3||shiboken: Pass around struct AddedFunction by QSharedPointer||5.12||pyside/pyside-setup||Status: MERGED||+2||0|
|258921,4||shiboken: Fix code injection not working for operator functions||5.12||pyside/pyside-setup||Status: MERGED||+2||0|
|259034,2||shiboken: Enable adding call operators||5.12||pyside/pyside-setup||Status: MERGED||+2||0|