Chris@16: // Copyright David Abrahams 2002. Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef COPY_CONST_REFERENCE_DWA2002131_HPP Chris@16: # define COPY_CONST_REFERENCE_DWA2002131_HPP Chris@16: Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: Chris@16: namespace boost { namespace python { Chris@16: Chris@16: namespace detail Chris@16: { Chris@16: template Chris@16: struct copy_const_reference_expects_a_const_reference_return_type Chris@16: # if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__) Chris@16: {} Chris@16: # endif Chris@16: ; Chris@16: } Chris@16: Chris@16: template struct to_python_value; Chris@16: Chris@16: struct copy_const_reference Chris@16: { Chris@16: template Chris@16: struct apply Chris@16: { Chris@16: typedef typename mpl::if_c< Chris@16: indirect_traits::is_reference_to_const::value Chris@16: , to_python_value Chris@16: , detail::copy_const_reference_expects_a_const_reference_return_type Chris@16: >::type type; Chris@16: }; Chris@16: }; Chris@16: Chris@16: Chris@16: }} // namespace boost::python Chris@16: Chris@16: #endif // COPY_CONST_REFERENCE_DWA2002131_HPP