2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-01-24 05:52:17 +00:00

removed old commented out code

[SVN r13236]
This commit is contained in:
Jaakko Järvi
2002-03-21 16:34:57 +00:00
parent 2c407cf775
commit fe183e216f
2 changed files with 4 additions and 33 deletions

View File

@@ -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

View File

@@ -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 <class Act, class A, class B> struct return_type_2_protect {
// typedef typename boost::remove_reference<A>::type A1;
// typedef typename boost::remove_reference<B>::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<A1>::value && (boost::is_function<A1>::value || !(boost::is_const<A1>::value)),
// boost::add_reference<A1>,
// boost::add_const<A1>
// >::type A2;
// typedef typename
// detail::IF_type<
// !is_lambda_functor<B1>::value && ( boost::is_function<B1>::value || !(boost::is_const<B1>::value)),
// boost::add_reference<B1>,
// boost::add_const<B1>
// >::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<class A, class B, class Ret>
// struct return_type_2<function_action<2, Ret>, A, B> {
// typedef typename return_type_1<function_action<1, Ret>, 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