| 74 | |
| 75 | template <class T, class Conversion ,bool has_get_pytype> |
| 76 | to_python_converter<T,Conversion, has_get_pytype>::to_python_converter() |
| 77 | { |
| 78 | typedef converter::as_to_python_function< |
| 79 | T, Conversion |
| 80 | > normalized; |
| 81 | |
| 82 | converter::registry::insert( |
| 83 | &normalized::convert |
| 84 | , type_id<T>() |
| 85 | #ifndef BOOST_PYTHON_NO_PY_SIGNATURES |
| 86 | , &get_pytype_impl |
| 87 | #endif |
| 88 | ); |
| 89 | } |
| 90 | |
| 91 | }} // namespace boost::python |
| 92 |