From fe183e216f76ea9a1b67b096ee3ed68be7c11256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Thu, 21 Mar 2002 16:34:57 +0000 Subject: [PATCH] removed old commented out code [SVN r13236] --- include/boost/lambda/detail/lambda_config.hpp | 4 +-- .../lambda/detail/return_type_traits.hpp | 33 ++----------------- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/include/boost/lambda/detail/lambda_config.hpp b/include/boost/lambda/detail/lambda_config.hpp index 2acd60e..782ad8b 100644 --- a/include/boost/lambda/detail/lambda_config.hpp +++ b/include/boost/lambda/detail/lambda_config.hpp @@ -30,9 +30,9 @@ #endif // __GNUC__ -# if defined __KCC +#if defined __KCC -#define BOOST_NO_FORWARD_DECLARADED_TEMPLATES_AS_TEMPLATE_TEMPLATE_PARAMETERS +#define BOOST_NO_FDECL_TEMPLATES_AS_TEMPLATE_TEMPLATE_PARAMS #endif // __KCC diff --git a/include/boost/lambda/detail/return_type_traits.hpp b/include/boost/lambda/detail/return_type_traits.hpp index 655d4fc..2520ef2 100644 --- a/include/boost/lambda/detail/return_type_traits.hpp +++ b/include/boost/lambda/detail/return_type_traits.hpp @@ -140,8 +140,8 @@ typedef typename // We need to make a conservative choise here. // The resulting lambda functor stores all const reference arguments as // const copies. References to non-const are stored as such. - // So if the source of the argument is an const open argument, a bound - // argument stroed as a const reference, or a function returning a + // So if the source of the argument is a const open argument, a bound + // argument stored as a const reference, or a function returning a // const reference, that information is lost. There is no way of // telling apart 'real const references' from just 'LL internal // const references' (or it would be really hard) @@ -154,24 +154,6 @@ typedef typename template struct return_type_2_protect { -// typedef typename boost::remove_reference::type A1; -// typedef typename boost::remove_reference::type B1; - -// // adding const to a function type fails, these tests are to -// // avoid that. Note that only the true branch is instantiated with this IF -// typedef typename -// detail::IF_type< -// !is_lambda_functor::value && (boost::is_function::value || !(boost::is_const::value)), -// boost::add_reference, -// boost::add_const -// >::type A2; - -// typedef typename -// detail::IF_type< -// !is_lambda_functor::value && ( boost::is_function::value || !(boost::is_const::value)), -// boost::add_reference, -// boost::add_const -// >::type B2; typedef typename @@ -190,17 +172,6 @@ typedef typename }; - - -// // unary function action (it is binary action) -// // If a function object overloads operator(), the return type could depend -// // on the argument types. This is not taken into consideration. -// template -// struct return_type_2, A, B> { -// typedef typename return_type_1, A>::type type; -// }; - - // reduce to lambda_functor_args // to be on the safe side, constness and references are stripped away, // though the type should always be plain