]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/python/include/boost/python/base_type_traits.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / python / include / boost / python / base_type_traits.hpp
CommitLineData
7c673cae
FG
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
7
8# include <boost/python/detail/prefix.hpp>
9
10namespace boost { namespace python {
11
12namespace detail
13{
14 struct unspecialized {};
15}
16
17// Derive from unspecialized so we can detect whether traits are
18// specialized
19template <class T> struct base_type_traits
20 : detail::unspecialized
21{};
22
23template <>
24struct base_type_traits<PyObject>
25{
26 typedef PyObject type;
27};
28
29template <>
30struct base_type_traits<PyTypeObject>
31{
32 typedef PyObject type;
33};
34
35template <>
36struct base_type_traits<PyMethodObject>
37{
38 typedef PyObject type;
39};
40
41}} // namespace boost::python
42
43#endif // BASE_TYPE_TRAITS_DWA2002614_HPP