]>
Commit | Line | Data |
---|---|---|
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 BY_VALUE_DWA20021015_HPP | |
6 | # define BY_VALUE_DWA20021015_HPP | |
7 | ||
8 | # include <boost/python/detail/prefix.hpp> | |
9 | ||
10 | # include <boost/python/to_python_value.hpp> | |
11 | # include <boost/type_traits/add_reference.hpp> | |
12 | # include <boost/type_traits/add_const.hpp> | |
13 | ||
14 | # include <boost/python/detail/value_arg.hpp> | |
15 | ||
16 | namespace boost { namespace python { | |
17 | ||
18 | struct return_by_value | |
19 | { | |
20 | template <class R> | |
21 | struct apply | |
22 | { | |
23 | typedef to_python_value< | |
24 | typename detail::value_arg<R>::type | |
25 | > type; | |
26 | }; | |
27 | }; | |
28 | ||
29 | }} // namespace boost::python | |
30 | ||
31 | #endif // BY_VALUE_DWA20021015_HPP |