How to take a tuple from python (represented as py::tuple) and convert it to a struct? #4174
Unanswered
SeanCaulfield1
asked this question in
Q&A
Replies: 0 comments
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.
-
Exactly as the title says, how can I take a py::tuple and convert it to a struct? Example code::
Or better yet, how can I have
a
andb
automatically converted to struct when the function is called?Beta Was this translation helpful? Give feedback.
All reactions