1 // Copyright David Abrahams 2002.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef ARG_TO_PYTHON_BASE_DWA200237_HPP
6 # define ARG_TO_PYTHON_BASE_DWA200237_HPP
7 # include <boost/python/handle.hpp>
8 
9 namespace boost { namespace python { namespace converter {
10 
11 struct registration;
12 
13 namespace detail
14 {
15   struct BOOST_PYTHON_DECL arg_to_python_base
16 # if !defined(BOOST_MSVC) || BOOST_MSVC <= 1300 || _MSC_FULL_VER > 13102179
17       : handle<>
18 # endif
19   {
20       arg_to_python_base(void const volatile* source, registration const&);
21 # if defined(BOOST_MSVC) && BOOST_MSVC > 1300 && _MSC_FULL_VER <= 13102179
getboost::python::converter::detail::arg_to_python_base22       PyObject* get() const { return m_ptr.get(); }
releaseboost::python::converter::detail::arg_to_python_base23       PyObject* release() { return m_ptr.release(); }
24    private:
25       handle<> m_ptr;
26 # endif
27   };
28 }
29 
30 }}} // namespace boost::python::converter
31 
32 #endif // ARG_TO_PYTHON_BASE_DWA200237_HPP
33