19 #include <boost/python.hpp>
29 template<
class T1,
class T2>
31 static PyObject*
convert(
const std::pair<T1, T2>& pair) {
32 boost::python::tuple t=boost::python::make_tuple<T1,T2>(pair.first,
34 return boost::python::incref(t.ptr());
static PyObject * convert(const std::pair< T1, T2 > &pair)
helper to convert between python tuple and std::pair