diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-11-15 08:03:52 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-11-15 12:16:08 +0100 |
| commit | 4b68425a1102828f13c0f647fd0c6470577165ed (patch) | |
| tree | 0f356b2587d2c07bf6f2bbb2787e7bc7b1afc895 /sources/pyside6/doc/tutorials/modelviewprogramming/simplemodel-use.py | |
| parent | 649592a8cbc9c656a7b9be77f043538bf4e242d5 (diff) | |
Fix smart pointer testing on macOS
The clang parser on macOS was not seeing namespace std for
std::optional. Add the system include <optional> to fix this.
This however unveils a problem with "T &std::optional::value()", which
returns a reference to the contained value instead of the value as
done by the synthesized function. The reference is handled as a
pointer conversion for object types and the std::optional itself
instead of the value is returned since it is found in the instance map
at the address (unhandled in findColocatedChild()).
Skip the test for the time being.
Pick-to: 6.8
Task-number: PYSIDE-2854
Change-Id: Ifcb65643ff0a39c060fb329933a1e6949ed8777c
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/doc/tutorials/modelviewprogramming/simplemodel-use.py')
0 files changed, 0 insertions, 0 deletions
