[shared_ptr] Compile error with include "nanobind/stl/vector.h". #269
Replies: 1 comment 4 replies
-
This is correct. You can handle |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
I'm binding a function witch return a shared_ptr with the code below.
It's ok when not include "nanobind/stl/vector.h".
But when I include "nanobind/stl/vector.h", it comes up with compile error.
Binding 'shared_ptr' requires that 'T' can also be bound by nanobind. It appears that you specified a type which would undergo conversion/copying, which is not allowed.
Beta Was this translation helpful? Give feedback.
All reactions