I was trying to generate a binding for a C struct included by an extern "C" block, but the effects are the same on clean C++ structs.
The code examples of the problem are shown here:
After looking at the code here:
I've noticed that the functions for generating bindings like 'function', 'method', 'constructor' have a policies... argument, but the value_tuple and value_struct don't have such an argument, yet they trigger a an error that says I have to use allow_raw_pointers() for the stuff to work.
The allow_raw_pointers() argument work if I want to bind a function that takes a raw_pointer argument, but still I see no way of binding the struct with a pointer field.
Am I missing something?