Skip to content

TypeError: Unregistered type : std::vector<X> when trying to cast std::vector<X> to py::list #5111

Closed Answered by naquad
naquad asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, what a silly mistake. Adding:

#include <pybind11/stl.h>

Has solved the error.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by naquad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant