Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:38

0001 // Copyright David Abrahams 2004. Distributed under the Boost
0002 // Software License, Version 1.0. (See accompanying
0003 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0004 #ifndef VALUE_ARG_DWA2004312_HPP
0005 # define VALUE_ARG_DWA2004312_HPP
0006 
0007 # include <boost/python/detail/copy_ctor_mutates_rhs.hpp>
0008 # include <boost/mpl/if.hpp>
0009 # include <boost/python/detail/indirect_traits.hpp>
0010 
0011 namespace boost { namespace python { namespace detail { 
0012 
0013 template <class T>
0014 struct value_arg
0015   : mpl::if_<
0016         copy_ctor_mutates_rhs<T>
0017       , T
0018       , typename add_lvalue_reference<
0019             typename add_const<T>::type
0020         >::type
0021   >
0022 {};
0023   
0024 }}} // namespace boost::python::detail
0025 
0026 #endif // VALUE_ARG_DWA2004312_HPP