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

std::unique_ptr is not supported by jlcxx::stl::apply_stl #370

Open
omus opened this issue Aug 31, 2023 · 0 comments
Open

std::unique_ptr is not supported by jlcxx::stl::apply_stl #370

omus opened this issue Aug 31, 2023 · 0 comments

Comments

@omus
Copy link
Contributor

omus commented Aug 31, 2023

Attempting to use CxxWrap's std::vector support for std::unique_ptrs fails with compilation errors. For example attempting to compile jlcxx::stl::apply_stl<std::unique_ptr<std::string>>(mod); results in:

bazel-out/darwin_arm64-opt/bin/external/libcxxwrap_julia/_virtual_includes/headers/jlcxx/stl.hpp:108:88: error: object of type 'std::vector<std::unique_ptr<std::string>>::value_type' (aka 'std::unique_ptr<std::string>') cannot be assigned because its copy assignment operator is implicitly deleted
    wrapped.method("cxxsetindex!", [] (WrappedT& v, const T& val, cxxint_t i) { v[i-1] = val; });
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

No branches or pull requests

1 participant