
15 Jul
2011
15 Jul
'11
3:53 p.m.
The following code fails with the error message: "Boost.Python.ArgumentError: Python argument types in m.f(list) did not match C++ signature: ..." How do I make it work? Do I have to write a custom translator? C++: void f(const vector<tuple<double, string, bool> >& x); BOOST_PYTHON_MODULE(m) { def("f", &f); } Python: import m m.f([(4.3, 'abc', True)]) Thank you, Johan Råde