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

[Feature Request] Support Vec<bool> #1103

Closed
radekvit opened this issue Sep 27, 2022 · 1 comment · Fixed by #1104
Closed

[Feature Request] Support Vec<bool> #1103

radekvit opened this issue Sep 27, 2022 · 1 comment · Fixed by #1104

Comments

@radekvit
Copy link

Can we please add support for Vec? There shouldn't be any special magic required, and though #169 claims to have fixed it, the snippet below doesn't work in any post-1.0.0 version of cxx I tried.

#[cxx::bridge]
mod ffi {
    unsafe extern "C++" {
        fn gimme_vecbool() -> Vec<bool>;
    }
}

Currently, the only workaround I know about is wrapping the bool in a structure, which works but is annoying to work with.

@dtolnay
Copy link
Owner

dtolnay commented Sep 28, 2022

Fixed in cxx 1.0.77.

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

Successfully merging a pull request may close this issue.

2 participants