Update of /cvsroot/boost/boost/libs/xpressive/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14442/test
Modified Files:
test_actions.cpp
Log Message:
workaround for Boost 1.34
Index: test_actions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/test/test_actions.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test_actions.cpp 30 Apr 2007 01:00:16 -0000 1.9
+++ test_actions.cpp 24 May 2007 23:17:08 -0000 1.10
@@ -11,6 +11,7 @@
#include <list>
#include <stack>
#include <numeric>
+#include <boost/version.hpp>
#include <boost/xpressive/xpressive_static.hpp>
#include <boost/xpressive/regex_actions.hpp>
#include <boost/test/unit_test.hpp>
@@ -66,8 +67,13 @@
std::list<int> result;
std::string str("1 23 456 7890");
+#if BOOST_VERSION >= 103500
sregex rx = (+_d)[ ref(result)->*push_back( as<int>(_) ) ]
>> *(' ' >> (+_d)[ ref(result)->*push_back( as<int>(_) ) ]);
+#else
+ sregex rx = (+_d)[ push_back(ref(result), as<int>(_) ) ]
+ >> *(' ' >> (+_d)[ push_back(ref(result), as<int>(_) ) ]);
+#endif
if(!regex_match(str, rx))
{
-------------------------------------------------------------------------
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