Update of /cvsroot/boost/boost/libs/xpressive/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30506/libs/xpressive/test
Modified Files:
test_actions.cpp
Log Message:
in xpressive actions, foo(x,y) and x->*foo(y) are equivalent
Index: test_actions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/test/test_actions.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_actions.cpp 24 Mar 2007 10:07:30 -0000 1.4
+++ test_actions.cpp 27 Mar 2007 07:13:55 -0000 1.5
@@ -59,15 +59,15 @@
///////////////////////////////////////////////////////////////////////////////
// test3
-// cast string to int, push back into list
+// cast string to int, push back into list, use alternate ->* syntax
void test3()
{
using namespace boost::xpressive;
std::list<int> result;
std::string str("1 23 456 7890");
- sregex rx = (+_d)[ push_back( result, as<int>(_) ) ]
- >> *(' ' >> (+_d)[ push_back( result, as<int>(_) ) ]);
+ sregex rx = (+_d)[ result->*push_back( as<int>(_) ) ]
+ >> *(' ' >> (+_d)[ result->*push_back( as<int>(_) ) ]);
if(!regex_match(str, rx))
{
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs