Update of /cvsroot/boost/boost/boost/xpressive/proto/transform
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26750/proto/transform

Modified Files:
        arg.hpp 
Log Message:
bug fixes, work-arounds

Index: arg.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/transform/arg.hpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- arg.hpp     20 Mar 2007 01:27:31 -0000      1.11
+++ arg.hpp     31 May 2007 16:13:06 -0000      1.12
@@ -10,6 +10,7 @@
 #define BOOST_PROTO_TRANSFORM_ARG_HPP_EAN_12_16_2006
 
 #include <boost/xpressive/proto/detail/prefix.hpp>
+#include <boost/mpl/apply.hpp>
 #include <boost/xpressive/proto/proto_fwd.hpp>
 #include <boost/xpressive/proto/traits.hpp>
 #include <boost/xpressive/proto/detail/suffix.hpp>
@@ -171,6 +172,26 @@
         BOOST_PROTO_IDENTITY_TRANSFORM();
     };
 
+    // Apply an MPL lambda, passing just Expr
+    template<typename Grammar, typename Placeholder>
+    struct apply1
+      : Grammar
+    {
+        apply1();
+
+        template<typename Expr, typename, typename>
+        struct apply
+          : mpl::apply1<Placeholder, Expr>
+        {};
+
+        template<typename Expr, typename State, typename Visitor>
+        static typename apply<Expr, State, Visitor>::type
+        call(Expr const &expr, State const &, Visitor &)
+        {
+            return Placeholder::call(expr);
+        }
+    };
+
 }}}
 
 #endif


-------------------------------------------------------------------------
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

Reply via email to