aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/snippets/qtbase/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-11-27 09:35:35 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-12-16 14:55:39 +0100
commit4cce05488f04b279e14e2830b39a2c243ea4c793 (patch)
treeaa6e4738ced5b4d64f60040311ec508fd29553a1 /sources/pyside6/doc/snippets/qtbase/examples
parent836b29c9992cec672f87b2ff5b572e1450dfe418 (diff)
shiboken6: Refactor and fix the synthesizing of comparison operators
Change the way it is implemented to traverse the operator<=>() function and construct a AbstractMetaFunction from it first, so that the standard shiboken rejection mechanism works and the argument is properly converted. Change AbstractMetaClass::addSynthesizedComparisonOperators() to take an AbstractMetaArgumentList and a mask of operators to be created, enabling synthesizing of non-homogeneous operators and operator!=() from operator==() in a subsequent change. Implement the rule for synthesizing operator==()/operator!=() from operator<=>() correctly (only happens for defaulted operator<=>()). Do not synthesize ordering operators for non-pair type containers. Task-number: PYSIDE-3245 Change-Id: I83865253c05ea87ebd874f0c619115f132a98477 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/doc/snippets/qtbase/examples')
0 files changed, 0 insertions, 0 deletions