scapix
scapix copied to clipboard
`scapix::bridge::object`-derived class parameters can be bridged without `std::shared_ptr`
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_ptrscapix::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.