Re: [C++-sig] conversion problem

2008-12-12 Thread Luca Sbardella
you are right, that was silly. thanks a lot 2008/12/12 Hans Meine > On Thursday 11 December 2008 16:29:34 Luca Sbardella wrote: > > The error I get is > > *error C2668: 'boost::python::make_tuple' : ambiguous call to overloaded > > function > > could b

Re: [C++-sig] conversion problem

2008-12-12 Thread Luca Sbardella
lues).ptr()); } And this works in all situations. However, I admit it is not a great solution. 2008/12/11 Luca Sbardella > My authomatic conversion function from std::pair does not work when one of > the pair type is a boost::python::object. > > Template for conversion >

[C++-sig] conversion problem

2008-12-11 Thread Luca Sbardella
My authomatic conversion function from std::pair does not work when one of the pair type is a boost::python::object. Template for conversion template struct pair_to_tuple { typedef pair_to_tuple converter; typedef std::pair ctype; static PyObject* convert(ctype const& v) { using namespace boos