Update of /cvsroot/boost/boost/libs/xpressive/proto/example
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5021/libs/xpressive/proto/example
Modified Files:
calc3.cpp rgb.cpp vec3.cpp
Log Message:
move applyN and always transforms into the apply.hpp header
Index: calc3.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/example/calc3.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- calc3.cpp 20 Jun 2007 01:45:49 -0000 1.5
+++ calc3.cpp 23 Jun 2007 17:12:49 -0000 1.6
@@ -16,6 +16,7 @@
#include <boost/xpressive/proto/context.hpp>
#include <boost/xpressive/proto/transform/arg.hpp>
#include <boost/xpressive/proto/transform/fold.hpp>
+#include <boost/xpressive/proto/transform/apply.hpp>
using namespace boost;
// Will be used to define the placeholders _1 and _2
Index: rgb.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/example/rgb.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rgb.cpp 23 Jun 2007 01:38:40 -0000 1.1
+++ rgb.cpp 23 Jun 2007 17:12:49 -0000 1.2
@@ -11,6 +11,7 @@
#include <iostream>
#include <boost/xpressive/proto/proto.hpp>
#include <boost/xpressive/proto/transform/arg.hpp>
+#include <boost/xpressive/proto/transform/apply.hpp>
#include <boost/xpressive/proto/transform/compose.hpp>
using namespace boost::proto;
Index: vec3.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/example/vec3.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- vec3.cpp 23 Jun 2007 07:42:23 -0000 1.2
+++ vec3.cpp 23 Jun 2007 17:12:49 -0000 1.3
@@ -16,6 +16,7 @@
#include <boost/xpressive/proto/proto_typeof.hpp>
#include <boost/xpressive/proto/transform/arg.hpp>
#include <boost/xpressive/proto/transform/fold.hpp>
+#include <boost/xpressive/proto/transform/apply.hpp>
#include <boost/xpressive/proto/transform/function.hpp>
using namespace boost::proto;
namespace mpl = boost::mpl;
@@ -44,7 +45,7 @@
// This transform counts the number of int[3] terminals in an expression.
// It accumulates a runtime value, rather than computing a compile-time
// value, just to demonstrate the use of the std::plus<> function object
-// as a transform.
+// with the function2 transform.
struct CountLeaves
: or_<
// match a Vec3 terminal, return 1
-------------------------------------------------------------------------
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