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

shared_pointer support in javascript #2902

Open
dakhnod opened this issue May 7, 2024 · 2 comments
Open

shared_pointer support in javascript #2902

dakhnod opened this issue May 7, 2024 · 2 comments

Comments

@dakhnod
Copy link

dakhnod commented May 7, 2024

I have seen #798, #236 and #1365 and find this plot a bit hard to follow.

Is there support for std::shared_ptr? Swig 4.2.1 doesn't seem to include std_shared_ptr.i, which would be really useful.

Does anyone have a hint on where I could find that?

@ojwb
Copy link
Member

ojwb commented May 31, 2024

SWIG doesn't yet support std::shared_ptr when generating Javascript wrappers.

There have been a couple of patches submitted which you've linked to, but they were incomplete and the submitters didn't respond to requests to update their patches so they were eventually closed.

@mateusz-plociennik
Copy link

There's JavaScript Evolution fork by @mmomtchev that has it implemented for napi, see mmomtchev#42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants