You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thank you for the report!
I think that it is related to this issue.
IIUC, bindgen have a strategy to convert all items that have non-type template parameters to opaque blobs.
I'm not entirely sure, but maybe we could handle arrays as a special case...
(Note the u64, not f64.) At least the lay-out matches the original struct, even though the members aren't easily usable.
However, with the alias template for an array as in this bug report, the resulting struct doesn't even match the original struct layout as the arrays/blobs are replaced with pointers.
Structs with non-type template parameters indeed turn into blobs:
This is the desired behavior here, and we need to figure out why it isn't happening with the template alias.
We don't support translating anything with non-type template parameters to anything other than opaque blobs. When Rust gains const generics, we can start revisiting this approach.
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
position
andorientation
are arrays of doubles. In the generated code, they are pointers.The text was updated successfully, but these errors were encountered: