Boost Users :
Subject: Re: [Boost-users] [Python] Handling std::vector and boost::tuple
From: Ravi (lists_ravi_at_[hidden])
Date: 2011-07-19 21:09:15
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:
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net