Closed elliotcmorris closed 10 months ago
Following on from our discussion, didn't spot anything on a squiz through of C_API
, CODING_STYLE
and CODING_STANDARDS
about not using standard library types in an interface because of the c-api.
The first commit [Core] Copy python error mode in getTraitProperty
could do with updating with the issue number and getTraitProperty
-> getSomeProperty
or similar.
@feltech Changed the first commit in a rebase as suggested.
Closes #57
C++
getTraitProperty
method now returnsstd::optional<T>
rather than throwing when invoked without a default parameter. This mirrors the python behaviour of returningNone
in this case.Also adds pair of tests to python test suite to add missing checks about traitViews constructed around empty traitsdatas.