1 | #ifndef OTHER_DWA20020601_HPP |
2 | # define OTHER_DWA20020601_HPP |
3 | |
4 | # include <boost/python/detail/prefix.hpp> |
5 | // Copyright David Abrahams 2002. |
6 | // Distributed under the Boost Software License, Version 1.0. (See |
7 | // accompanying file LICENSE_1_0.txt or copy at |
8 | // http://www.boost.org/LICENSE_1_0.txt) |
9 | |
10 | # pragma once |
11 | |
12 | # include <boost/config.hpp> |
13 | |
14 | namespace boost { namespace python { |
15 | |
16 | template<class T> struct other |
17 | { |
18 | typedef T type; |
19 | }; |
20 | |
21 | namespace detail |
22 | { |
23 | template<typename T> |
24 | class is_other |
25 | { |
26 | public: |
27 | BOOST_STATIC_CONSTANT(bool, value = false); |
28 | }; |
29 | |
30 | template<typename T> |
31 | class is_other<other<T> > |
32 | { |
33 | public: |
34 | BOOST_STATIC_CONSTANT(bool, value = true); |
35 | }; |
36 | |
37 | template<typename T> |
38 | class unwrap_other |
39 | { |
40 | public: |
41 | typedef T type; |
42 | }; |
43 | |
44 | template<typename T> |
45 | class unwrap_other<other<T> > |
46 | { |
47 | public: |
48 | typedef T type; |
49 | }; |
50 | } |
51 | |
52 | }} // namespace boost::python |
53 | |
54 | #endif // #ifndef OTHER_DWA20020601_HPP |
55 | |