Chris@16: // Copyright David Abrahams 2002. Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef ARG_TO_PYTHON_BASE_DWA200237_HPP Chris@16: # define ARG_TO_PYTHON_BASE_DWA200237_HPP Chris@16: # include Chris@16: Chris@16: namespace boost { namespace python { namespace converter { Chris@16: Chris@16: struct registration; Chris@16: Chris@16: namespace detail Chris@16: { Chris@16: struct BOOST_PYTHON_DECL arg_to_python_base Chris@16: # if !defined(BOOST_MSVC) || BOOST_MSVC <= 1300 || _MSC_FULL_VER > 13102179 Chris@16: : handle<> Chris@16: # endif Chris@16: { Chris@16: arg_to_python_base(void const volatile* source, registration const&); Chris@16: # if defined(BOOST_MSVC) && BOOST_MSVC > 1300 && _MSC_FULL_VER <= 13102179 Chris@16: PyObject* get() const { return m_ptr.get(); } Chris@16: PyObject* release() { return m_ptr.release(); } Chris@16: private: Chris@16: handle<> m_ptr; Chris@16: # endif Chris@16: }; Chris@16: } Chris@16: Chris@16: }}} // namespace boost::python::converter Chris@16: Chris@16: #endif // ARG_TO_PYTHON_BASE_DWA200237_HPP