Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[embind] Allow optional types to contain pointers. #21769

Merged

Conversation

brendandahl
Copy link
Collaborator

@brendandahl brendandahl commented Apr 16, 2024

Previously, register_vector and register_map didn't use std::optional, but allowed pointers. After changing them to use std::optional, pointers were no longer were allowed. This restores the previous behavior.

Fixes #21768

Previously, register_vector and register_map didn't use std::optional,
but allowed pointers. After changing them to use std::optional, pointers
were no longer were allowed. This restores the previous behavior.

Fixes emscripten-core#21768
@brendandahl brendandahl enabled auto-merge (squash) April 17, 2024 18:30
@brendandahl brendandahl merged commit c95f089 into emscripten-core:main Apr 17, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

register_vector and register_map with raw pointer
2 participants