Skip to content

Properly wrap array reference parameters

David Gobbi requested to merge dgobbi/vtk:wrap-array-ref into master

This small change allows wrapping of T (&a)[N] array parameters, such as float (&a)[3] or char (&a)[256]. These will be wrapped as size-checked Python-sequence to C++-array conversions, that is, they will be wrapped similarly to T a[N].

Without this change, the wrappers attempted to wrap T (&a)[N] with code meant to wrap T*& a, leading to a compile errors.

Related: !9262 (merged)

Edited by David Gobbi

Merge request reports