1 #ifndef _UNIT_FROM_TO_PYTHON_H_
2 #define _UNIT_FROM_TO_PYTHON_H_
3 #include <boost/version.hpp>
4 #if BOOST_VERSION != 102800
11 struct default_result_converter::apply<
Unit* >
14 typedef::boost::python::default_result_converter::apply< UnitWrapper >::type
type;
64 BOOST_PYTHON_END_CONVERSION_NAMESPACE
70 BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE
71 inline PyObject*to_python(
Unit*un )
75 inline Unit * from_python( PyObject *p, boost::python::type< Unit* >)
77 UnitWrapper uw = ( from_python( p, boost::python::type< UnitWrapper& > () ) );
80 BOOST_PYTHON_END_CONVERSION_NAMESPACE