Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2008-05-02 22:37:10


Author: eric_niebler
Date: 2008-05-02 22:37:09 EDT (Fri, 02 May 2008)
New Revision: 45052
URL: http://svn.boost.org/trac/boost/changeset/45052

Log:
simplify
Text files modified:
   branches/proto/v4/libs/proto/example/lambda.hpp | 19 -------------------
   1 files changed, 0 insertions(+), 19 deletions(-)

Modified: branches/proto/v4/libs/proto/example/lambda.hpp
==============================================================================
--- branches/proto/v4/libs/proto/example/lambda.hpp (original)
+++ branches/proto/v4/libs/proto/example/lambda.hpp 2008-05-02 22:37:09 EDT (Fri, 02 May 2008)
@@ -654,19 +654,6 @@
           : proto::domain<proto::pod_generator<llexpr> >
         {};
 
- // Ugh, boost::ref() doesn't handle reference-to-function
- template<typename T>
- reference_wrapper<T> const llref(T &t, typename disable_if<is_function<T> >::type * = 0)
- {
- return reference_wrapper<T>(t);
- }
-
- template<typename T>
- T &llref(T &t, typename enable_if<is_function<T> >::type * = 0)
- {
- return t;
- }
-
         namespace exprns_
         {
             // Ugh, the assign operators (and only the assign operators) store
@@ -1057,7 +1044,6 @@
             return t;
         }
 
- #define M0(Z, M, DATA) lambda::llref(BOOST_PP_CAT(a, M))
         #define M1(Z, N, DATA) \
         template<BOOST_PP_ENUM_PARAMS_Z(Z, N, typename A)> \
         typename proto::result_of::make_expr< \
@@ -1082,7 +1068,6 @@
         } \
         /**/
         BOOST_PP_REPEAT_FROM_TO(1, BOOST_PP_INC(BOOST_PROTO_MAX_ARITY), M1, ~)
- #undef M0
         #undef M1
 
         template<typename Ret, typename Expr>
@@ -1537,7 +1522,6 @@
             return proto::implicit_expr(noop);
         }
 
- #define M0(Z, N, DATA) lambda::llref(BOOST_PP_CAT(a, N))
         #define M1(Z, N, DATA) \
         template<BOOST_PP_ENUM_PARAMS_Z(Z, N, typename A)> \
         typename proto::result_of::make_expr< \
@@ -1551,7 +1535,6 @@
         } \
         /**/
         BOOST_PP_REPEAT_FROM_TO(2, BOOST_PP_INC(BOOST_PROTO_MAX_ARITY), M1, ~)
- #undef M0
         #undef M1
 
         template<typename Expr>
@@ -1596,7 +1579,6 @@
             return proto::implicit_expr(fun, expr);
         }
 
- #define M0(Z, N, DATA) lambda::llref(BOOST_PP_CAT(a, N))
         #define M1(Z, N, DATA) \
         template<BOOST_PP_ENUM_PARAMS_Z(Z, N, typename A)> \
         typename proto::result_of::make_expr< \
@@ -1610,7 +1592,6 @@
         } \
         /**/
         BOOST_PP_REPEAT_FROM_TO(2, BOOST_PP_INC(BOOST_PROTO_MAX_ARITY), M1, ~)
- #undef M0
         #undef M1
 
         template<int I, typename Expr>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk