From 72360029542cff4979a6a682a25821ea89e09ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Thu, 10 Jan 2002 21:08:37 +0000 Subject: [PATCH] removed constify_rvalues as not used anymore [SVN r12276] --- include/boost/lambda/detail/lambda_traits.hpp | 33 +------------------ 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/include/boost/lambda/detail/lambda_traits.hpp b/include/boost/lambda/detail/lambda_traits.hpp index 834bb9e..4e4b0ac 100644 --- a/include/boost/lambda/detail/lambda_traits.hpp +++ b/include/boost/lambda/detail/lambda_traits.hpp @@ -88,37 +88,6 @@ template struct remove_reference_and_cv { }; -// -- constify_rvalues ---------------------------------------------------- - -// class type rvalues can be cv qualified, whereas -// built-in type rvalues (int, float, T*) cannot. - -// This template constifies all class rvalues, and removes qualifiers -// from non-class rvalues -// Volatile qualifier is dropped in all rvalues. - -// Rationale: -// The result -// should be bindable to a reference (when binding temporaries, the -// refrence must be to a non-volatile const type, See 8.5.3. (5)) -// and the type of this reference is determined by the result of this -// template. - -// Non-class rvalues are constified later (in lambda_functor_base) - -template struct constify_rvalues { - - typedef typename boost::remove_cv::type plain_T; - - typedef typename - detail::IF< - is_class::value, - const plain_T, - plain_T - >::RET type; -}; -// void is cv-stripped as well, but that is ok -// reference types stay as they are // returns a reference to the element of tuple T // If the element is stored as a copy, the reference is to @@ -164,7 +133,7 @@ namespace detail { // -- parameter_traits_ --------------------------------------------- -// An internal parameter type traits class that honours +// An internal parameter type traits class that respects // the reference_wrapper class. // The conversions performed are: