[C++-sig] Help with converters ...
hans_meine at gmx.net
Mon Oct 19 20:44:30 CEST 2009
On Montag 19 Oktober 2009, Michele De Stefano wrote:
> Now, when I try to implement the "convertible" static member function
> of the converter class, I write this (I've extracted only the
> interesting part):
> extract<const tuple&>
This looks like the problem to me; you're effectively trying to get a
*reference* from python, i.e. this can only work if there is already an
*existing* boost::python::tuple object hidden in (in) and (in).
(This will typically only work with BPL-exported C++ objects wrapped into
their python shells.)
I'd try simply removing the const &: extract<tuple>..
Ciao, / / .o.
/ / ANS ooo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part.
More information about the Cplusplus-sig