Replies: 1 comment 1 reply
-
|
The
On many platforms, the type equivalence check will do a string comparison. If everything is in the same Python extension module, you can do a pointer comparison instead ( |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, currently I have a use case that an be simplified like below:
Nanobind can convert the
listimplicitly toVectorFand then getstd::vector<double>from it (due toimplicitly_convertible<iterable, Vector>()inbind_vector), so above codes run without problems. However, to make codes more efficient, I'd like to move the vector if it is implicitly created, something like below:Is there any way I can achieve this?
Beta Was this translation helpful? Give feedback.
All reactions