-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Problem with std::shared_ptr<std::vector<T>> as argument in v2.2.0 #1052
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
Comments
Did this actually work or just compile in v2.1.1? As far as I know, it never worked, it's just that it was a run-time error in v2.1 and now it's a compile-time error in v2.2. There is an open issue about it: #787. |
Ah, that could be. It is part of a long list of overloads that may not actually be used. Let me check. |
dean0x7d
added a commit
to dean0x7d/pybind11
that referenced
this issue
Sep 2, 2017
Closes pybind#1048, closes pybind#1052. [skip ci]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
std::shared_ptr<std::vector<T>>
as an argument (or return value) used to work in v2.1.1, but now gives an error:include/pybind11/cast.h:1378:5: error: static_assert failed "Holder classes are only supported for custom types" static_assert(std::is_base_of<base, type_caster<type>>::value
.The text was updated successfully, but these errors were encountered: