-
I'm on the When trying to bind a
I'm presented with this error. I should not use the NB_MAKE_OPAQUE when reading the documentation and example. From testing, it looks like we can't combine having the include of stl/vector and stl/bind_vector, was this intended? This snippet causes the compiler to fail. #include <nanobind/stl/vector.h> // Need it for something else
#include <nanobind/stl/bind_vector.h>
NB_MODULE(test_bind_vector_ext, m) {
nb::bind_vector<std::vector<unsigned int>>(m, "VectorInt");
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Lorac -- I added an FAQ entry to answer this question, please let me know anything remains unclear: https://nanobind.readthedocs.io/en/latest/faq.html#compilation-fails-with-a-static-assertion-mentioning-nb-make-opaque |
Beta Was this translation helpful? Give feedback.
Hi @Lorac -- I added an FAQ entry to answer this question, please let me know anything remains unclear: https://nanobind.readthedocs.io/en/latest/faq.html#compilation-fails-with-a-static-assertion-mentioning-nb-make-opaque