[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

[C++-sig] preventing boost::python::throw_error_already_set

2008-12-11 Thread Leonard Ritter
hi everyone, i'm having a problem where a boost::python::throw_error_already_set is being thrown and causes a segfault (linux). unfortunately the error happens from within python, when reaching the end of an iteration through a vector array, which was exported using the vector indexing suite. is

Re: [C++-sig] preventing boost::python::throw_error_already_set

2008-12-11 Thread Stefan Seefeld
Leonard Ritter wrote: hi everyone, i'm having a problem where a boost::python::throw_error_already_set is being thrown and causes a segfault (linux). unfortunately the error happens from within python, when reaching the end of an iteration through a vector array, which was exported using the