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 BASE_TYPE_TRAITS_DWA2002614_HPP
6 # define BASE_TYPE_TRAITS_DWA2002614_HPP
8 # include <boost/python/detail/prefix.hpp>
10 namespace boost { namespace python {
14 struct unspecialized {};
17 // Derive from unspecialized so we can detect whether traits are
19 template <class T> struct base_type_traits
20 : detail::unspecialized
24 struct base_type_traits<PyObject>
26 typedef PyObject type;
30 struct base_type_traits<PyTypeObject>
32 typedef PyObject type;
36 struct base_type_traits<PyMethodObject>
38 typedef PyObject type;
41 }} // namespace boost::python
43 #endif // BASE_TYPE_TRAITS_DWA2002614_HPP