Skip to content

Constructor support. #250

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

Closed
kkimdev opened this issue Nov 13, 2016 · 3 comments
Closed

Constructor support. #250

kkimdev opened this issue Nov 13, 2016 · 3 comments

Comments

@kkimdev
Copy link

kkimdev commented Nov 13, 2016

Please correct me if I'm wrong, but looks like we don't support constructor yet?

@emilio
Copy link
Contributor

emilio commented Nov 13, 2016

Yep, that's right. I'm not sure what calling convention do compilers use for constructors, and similar, so right now they aren't parsed.

I haven't (nor plan in the short term) tried to figure out a way to call a C++ constructor from rust directly. Hopefully they use something like placement new under the hood and we can call them, but...

@bbigras
Copy link

bbigras commented Dec 15, 2016

Was this implemented with #332?

@emilio
Copy link
Contributor

emilio commented Dec 15, 2016

Right.

@emilio emilio closed this as completed Dec 15, 2016
luser pushed a commit to luser/rust-bindgen that referenced this issue Mar 27, 2017
Recurse into unexposed decls
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