#ifndef _PY_UTILS_H #define _PY_UTILS_H template struct ObjFromPy { ObjFromPy() { boost::python::converter::registry::push_back (&TfromPy::convertible, &TfromPy::construct, boost::python::type_id()); } }; template struct register_python_conversion { register_python_conversion() { boost::python::to_python_converter(); ObjFromPy(); } }; #endif // _PY_UTILS_H