Update of /cvsroot/boost/boost/boost/xpressive/detail/static/productions
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12267/boost/xpressive/detail/static/productions
Modified Files:
productions.hpp
Log Message:
make eval() a free function, make xpressive deep_copy semantic actions
Index: productions.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/xpressive/detail/static/productions/productions.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- productions.hpp 23 Mar 2007 00:09:05 -0000 1.15
+++ productions.hpp 29 Mar 2007 22:19:38 -0000 1.16
@@ -51,6 +51,7 @@
{
typedef typename proto::result_of::left<Expr>::type expr_type;
typedef typename proto::result_of::right<Expr>::type action_type;
+ typedef typename proto::result_of::deep_copy<action_type>::type
action_copy_type;
typedef typename marker_transform::
template apply<expr_type, State, Visitor>::type
@@ -58,8 +59,8 @@
typedef typename mpl::if_<
proto::matches<action_type,
proto::terminal<predicate_placeholder<proto::_> > >
- , predicate_matcher<action_type>
- , action_matcher<action_type>
+ , predicate_matcher<action_copy_type>
+ , action_matcher<action_copy_type>
>::type matcher_type;
typedef typename proto::right_shift
@@ -85,7 +86,7 @@
, {
matcher_type
(
- proto::right(expr)
+ proto::deep_copy(proto::right(expr))
, proto::arg(proto::left(marked_expr)).mark_number_
)
}
-------------------------------------------------------------------------
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