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/python/detail/indirect_traits.hpp>
10 
11 namespace boost { namespace python { namespace detail {
12 
13 template <class T>
14 struct value_arg
15   : mpl::if_<
16         copy_ctor_mutates_rhs<T>
17       , T
18       , typename add_lvalue_reference<
19             typename add_const<T>::type
20         >::type
21   >
22 {};
23 
24 }}} // namespace boost::python::detail
25 
26 #endif // VALUE_ARG_DWA2004312_HPP
27