// Copyright David Abrahams 2002. Permission to copy, use, // modify, sell and distribute this software is granted provided this // copyright notice appears in all copies. This software is provided // "as is" without express or implied warranty, and with no claim as // to its suitability for any purpose. #ifndef REGISTER_PTR_TO_PYTHON_HPP #define REGISTER_PTR_TO_PYTHON_HPP #include #include namespace boost { namespace python { template void register_ptr_to_python(P* = 0) { typedef boost::python::pointee

::type X; objects::class_value_wrapper< P , objects::make_ptr_instance< X , objects::pointer_holder > >(); } }} // namespace boost::python #endif // REGISTER_PTR_TO_PYTHON_HPP