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

scapix::bridge::object-derived class parameters can be bridged without std::shared_ptr #53

Open
TimPushkin opened this issue Jul 14, 2023 · 0 comments

Comments

@TimPushkin
Copy link

TimPushkin commented Jul 14, 2023

The docs state that "Classes derived from scapix::bridge::object are bridged by reference and supported in Scapix bindings only when passed as std::shared_ptr" -- I thought that this means one has to wrap scapix::bridge::object-derived classes into std::shared_ptr in bridged methods both when such classes are returned or used as parameters. However, I found that methods containing scapix::bridge::object-derived parameters passed by value or const reference also get included in the generated bridge (I tested Java) even though std::shared_ptr is not used. Is this a feature that can be reliably used? If so, it would be nice to have this documented more clearly.

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

No branches or pull requests

1 participant