Update of /cvsroot/boost/boost/boost/xpressive/proto/transform
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10424/proto/transform
Modified Files:
pass_through.hpp
Log Message:
make pass_through transform work with domain wrappers
Index: pass_through.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/xpressive/proto/transform/pass_through.hpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- pass_through.hpp 16 Jun 2007 05:46:16 -0000 1.12
+++ pass_through.hpp 25 Jun 2007 07:22:43 -0000 1.13
@@ -62,14 +62,20 @@
template<typename Expr, typename State, typename Visitor>
struct apply
- : detail::pass_through_impl<Grammar, Expr, State, Visitor,
Expr::proto_arity::value>
+ : detail::pass_through_impl<
+ Grammar
+ , typename Expr::proto_base_expr
+ , State
+ , Visitor
+ , Expr::proto_arity::value
+ >
{};
template<typename Expr, typename State, typename Visitor>
static typename apply<Expr, State, Visitor>::type
call(Expr const &expr, State const &state, Visitor &visitor)
{
- return apply<Expr, State, Visitor>::call(expr, state, visitor);
+ return apply<Expr, State, Visitor>::call(expr.proto_base(),
state, visitor);
}
};
@@ -82,14 +88,20 @@
template<typename Expr, typename State, typename Visitor>
struct apply
- : transform::detail::pass_through_impl<Grammar, Expr, State,
Visitor, Expr::proto_arity::value>
+ : transform::detail::pass_through_impl<
+ Grammar
+ , typename Expr::proto_base_expr
+ , State
+ , Visitor
+ , Expr::proto_arity::value
+ >
{};
template<typename Expr, typename State, typename Visitor>
static typename apply<Expr, State, Visitor>::type
call(Expr const &expr, State const &state, Visitor &visitor)
{
- return apply<Expr, State, Visitor>::call(expr, state, visitor);
+ return apply<Expr, State, Visitor>::call(expr.proto_base(), state,
visitor);
}
};
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs