How to bind nested vectors? #4468
Unanswered
nuttyartist
asked this question in
Q&A
Replies: 1 comment 6 replies
-
You know that writing:
copies the entries in
copy
|
Beta Was this translation helpful? Give feedback.
6 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.
-
So I have this function that works well.
But returning
allPairs
takes a long time. I think it's the overhead of pybind11 copying data into Python. I've tried to return a reference viapy::return_value_policy::reference
but I'm getting an error on the Python side. Does someone know how I can return this data structure correctlystd::vector< std::pair< std::vector<std::string>, std::vector<std::string> > >
?Beta Was this translation helpful? Give feedback.
All reactions