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
Is there a way to expose this in Rust in a way equivalent to
structResult{p:SharedPtr<Opaque>,}
An implementation like this example gives the error "type Result should be trivially move constructible and trivially destructible in C++ to be used as a return value of newResult in Rust"
I cannot change the C++ header and I don't want to add another layer of indirection by wrapping Result as an opaque class in a shared pointer.
The text was updated successfully, but these errors were encountered:
lenianiva
changed the title
Is there a way to expose a C++ class that is itself a wrapper?
Is there a way to expose a C++ class that is itself a wrapper on std::shared_ptr?
Jul 3, 2024
For example, consider a class like this:
Is there a way to expose this in Rust in a way equivalent to
An implementation like this example gives the error "type Result should be trivially move constructible and trivially destructible in C++ to be used as a return value of
newResult
in Rust"I cannot change the C++ header and I don't want to add another layer of indirection by wrapping
Result
as an opaque class in a shared pointer.The text was updated successfully, but these errors were encountered: