We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// src/input.h #pragma once #include <string> struct T { std::string s; }; void f(const T& t);
// src/input.cc #include "input.h" #include <iostream> void f(const T& t) { std::cout << t.s << std::endl; }
// src/main.rs use autocxx::include_cxx; include_cxx!(Header("input.h"), Allow("T"), Allow("f")); fn main() { ffi::cxxbridge::f(&ffi::cxxbridge::T {}); }
$ cargo run Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered:
Hmmm. Yep. That's going to be tougher to figure out.
Sorry, something went wrong.
I'd love to think that this will be as simple as putting in a private field, but I have a feeling this one is going to be more icky.
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: