Replies: 1 comment
-
No such type caster currently exists, but you are welcome to provide a PR that adds this functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to bind a c++ function that takes a vector of wrapped objects without calling their copy constructor and explicitly disallowing a null argument.
I can of course use pointers e.g.
std::vector<const Type*>
but nanobind will happily allow aNone
argument which I have to explicitly handle internally.pybind11
defines a type caster for std::reference_wrapper that does (I believe) what I'm looking. Is there similar support innanobind
?Beta Was this translation helpful? Give feedback.
All reactions