20 Jul
2011
20 Jul
'11
1:09 a.m.
On Friday 15 July 2011 08:53:19 Johan RĂ¥de wrote:
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?
Unfortunately, yes. The example, as written, requires two conversions: - from python list (or any python sequence) to std::vector - python tuples to boost.tuple You can use the vector indexing suite (v2) for the first part, and the following for the second: http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/docs/troubleshooting_guide/automatic_conversion/tuples.hpp?revision=899&view=markup Regards, Ravi