]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/include/boost/python/detail/value_arg.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / python / include / boost / python / detail / value_arg.hpp
1 // Copyright David Abrahams 2004. Distributed under the Boost
2 // Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 #ifndef VALUE_ARG_DWA2004312_HPP
5 # define VALUE_ARG_DWA2004312_HPP
6
7 # include <boost/python/detail/copy_ctor_mutates_rhs.hpp>
8 # include <boost/mpl/if.hpp>
9 # include <boost/type_traits/add_reference.hpp>
10 # include <boost/type_traits/add_const.hpp>
11
12 namespace boost { namespace python { namespace detail {
13
14 template <class T>
15 struct value_arg
16 : mpl::if_<
17 copy_ctor_mutates_rhs<T>
18 , T
19 , typename add_reference<
20 typename add_const<T>::type
21 >::type
22 >
23 {};
24
25 }}} // namespace boost::python::detail
26
27 #endif // VALUE_ARG_DWA2004312_HPP