Update of /cvsroot/boost/boost/boost/xpressive/detail/static
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5613/detail/static
Modified Files:
modifier.hpp
Log Message:
use as_arg instead of as_expr to avoid needless copying, proto::make_expr is
slightly less broken
Index: modifier.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/detail/static/modifier.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- modifier.hpp 12 Mar 2007 22:11:29 -0000 1.8
+++ modifier.hpp 9 May 2007 06:55:32 -0000 1.9
@@ -30,21 +30,21 @@
{
typedef regex_constants::syntax_option_type opt_type;
- template<typename Xpr>
+ template<typename Expr>
struct apply
{
typedef typename proto::binary_expr<
modifier_tag
, typename proto::terminal<Modifier>::type
- , typename proto::result_of::as_expr<Xpr>::type
+ , typename proto::result_of::as_arg<Expr const>::type
>::type type;
};
- template<typename Xpr>
- typename apply<Xpr>::type const
- operator ()(Xpr const &xpr) const
+ template<typename Expr>
+ typename apply<Expr>::type const
+ operator ()(Expr const &expr) const
{
- typename apply<Xpr>::type that = {{this->mod_},
proto::as_expr(xpr)};
+ typename apply<Expr>::type that = {{this->mod_},
proto::as_arg(expr)};
return that;
}
-------------------------------------------------------------------------
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