From cd6db4a38c43896fbc370a0d06fd30e624a100a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Mon, 31 Dec 2001 18:31:15 +0000 Subject: [PATCH] removed lambda_functor_sub as obsolete [SVN r12182] --- include/boost/lambda/detail/lambda_fwd.hpp | 2 -- include/boost/lambda/detail/lambda_traits.hpp | 6 ------ include/boost/lambda/detail/return_type_traits.hpp | 11 +++++++---- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/include/boost/lambda/detail/lambda_fwd.hpp b/include/boost/lambda/detail/lambda_fwd.hpp index c7c9dff..d76e9ad 100644 --- a/include/boost/lambda/detail/lambda_fwd.hpp +++ b/include/boost/lambda/detail/lambda_fwd.hpp @@ -43,8 +43,6 @@ template class action; template struct lambda_functor; -template -struct lambda_functor_sub; template struct is_lambda_functor_ { template struct is_lambda_functor_ > { BOOST_STATIC_CONSTANT(bool, value = true); }; - -// lambda_functor_sub goes for lambda functor as well -template struct is_lambda_functor_ > { - BOOST_STATIC_CONSTANT(bool, value = true); -}; - } // end detail diff --git a/include/boost/lambda/detail/return_type_traits.hpp b/include/boost/lambda/detail/return_type_traits.hpp index 990dfe9..1a8b5f0 100644 --- a/include/boost/lambda/detail/return_type_traits.hpp +++ b/include/boost/lambda/detail/return_type_traits.hpp @@ -61,8 +61,11 @@ struct open_args { // The primary template: // if we know nothing about Arg, it is not a lambda_functor. // Hence the return type is Arg itself. + template -struct return_type { typedef Arg type; }; +struct return_type { + typedef Arg type; +}; // Unary actions (result from unary operators) // do not have a default return type. @@ -86,7 +89,7 @@ typedef typename boost::remove_reference::type A1; typedef typename detail::IF< is_lambda_functor::value, - lambda_functor_sub< + lambda_functor< lambda_functor_args< action<1, Act>, tuple, @@ -140,7 +143,7 @@ template struct return_type_2_0 { typedef typename detail::IF< is_lambda_functor::value || is_lambda_functor::value, - lambda_functor_sub< + lambda_functor< lambda_functor_args< action<2, Act>, tuple, @@ -188,7 +191,7 @@ typedef typename // detail::IF< // is_lambda_functor::value || is_lambda_functor::value || // is_lambda_functor::value, -// lambda_functor_sub< +// lambda_functor< // lambda_functor_args< // action<3, Act>, // tuple,