How do I pass a Python list of my object type ClassName to a C++ function that accepts a vector?
ClassName
vector
The best I found is something
Found an iterator that solves my problem:
#include template void python_to_vector(boost::python::object o, vector* v) { stl_input_iterator begin(o); stl_input_iterator end; v->clear(); v->insert(v->end(), begin, end); }