Update of /cvsroot/boost/boost/libs/xpressive/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8654/libs/xpressive/test

Modified Files:
        test_actions.cpp 
Log Message:
rename arg<> to placeholder<>, make POD

Index: test_actions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/test/test_actions.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- test_actions.cpp    31 Mar 2007 00:55:48 -0000      1.8
+++ test_actions.cpp    30 Apr 2007 01:00:16 -0000      1.9
@@ -114,15 +114,15 @@
 void test4_aux()
 {
     using namespace boost::xpressive;
-    arg< std::map<std::string, int> > map;
+    placeholder< std::map<std::string, int> > const _map = {};
 
-    sregex pair = ( (s1= +_w) >> "=>" >> (s2= +_d) )[ map[s1] = as<int>(s2) ];
+    sregex pair = ( (s1= +_w) >> "=>" >> (s2= +_d) )[ _map[s1] = as<int>(s2) ];
     sregex rx = pair >> *(+_s >> pair);
 
     std::string str("aaa=>1 bbb=>23 ccc=>456");
     smatch what;
     std::map<std::string, int> result;
-    what.let(map = result); // bind the argument!
+    what.let(_map = result); // bind the argument!
 
     if(!regex_match(str, what, 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

Reply via email to