Update of /cvsroot/boost/boost/boost/xpressive/proto
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13025/boost/xpressive/proto
Modified Files:
context.hpp
Log Message:
more efficient actions
Index: context.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/context.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- context.hpp 29 Mar 2007 22:19:38 -0000 1.17
+++ context.hpp 31 Mar 2007 00:55:48 -0000 1.18
@@ -211,6 +211,7 @@
BOOST_PROTO_BINARY_OP_RESULT(^, proto::tag::bitwise_xor)
BOOST_PROTO_BINARY_OP_RESULT(->*, proto::tag::mem_ptr)
+ BOOST_PROTO_BINARY_OP_RESULT(=, proto::tag::assign)
BOOST_PROTO_BINARY_OP_RESULT(<<=, proto::tag::left_shift_assign)
BOOST_PROTO_BINARY_OP_RESULT(>>=, proto::tag::right_shift_assign)
BOOST_PROTO_BINARY_OP_RESULT(*=, proto::tag::multiply_assign)
@@ -239,21 +240,6 @@
}
};
- // Handle assignment specially.
- template<typename Expr, typename Context>
- struct default_eval<Expr, Context, proto::tag::assign, 2>
- {
- private:
- static Expr &sexpr;
- static Context &sctx;
- public:
-
BOOST_PROTO_TYPEOF(proto::eval(BOOST_PROTO_REF(proto::arg_c<0>(sexpr)), sctx) =
proto::eval(BOOST_PROTO_REF(proto::arg_c<1>(sexpr)), sctx), result_type)
- result_type operator()(Expr &expr, Context &ctx) const
- {
- return proto::eval(proto::arg_c<0>(expr), ctx) =
proto::eval(proto::arg_c<1>(expr), ctx);
- }
- };
-
// Handle post-increment specially.
template<typename Expr, typename Context>
struct default_eval<Expr, Context, proto::tag::post_inc, 1>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs