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
[embind] Add pointer policies for creating val objects. (#24175)
Using pointers with val worked inconsistently before where:
```
Foo f;
Foo* p = &f;
val v1(p); // works fine
val v2(&f); // fails
```
The pointer working above was probably a mistake[1] and was caused by
TypeID normalizing the types differently than how BindingType does. This
patch picks up the work done previously[2] to enforce that types are
normalized consistently.
In the above example both will now require a pointer policy e.g. `(val
v(p, allow_raw_pointers())`.
[1]#7292 (comment)
[2]https://github.com/yeputons/emscripten/tree/fix-7292-embind-type-normalize
0 commit comments