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

Modified Files:
        regex_actions.hpp 
Log Message:
lazy binding works with native arrays, defer result_of evaluation in 
proto::context<>

Index: regex_actions.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/regex_actions.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- regex_actions.hpp   24 Mar 2007 18:29:06 -0000      1.6
+++ regex_actions.hpp   24 Mar 2007 21:50:23 -0000      1.7
@@ -30,10 +30,11 @@
         struct action_arg
         {
             typedef T type;
+            typedef typename add_reference<T>::type reference;
 
-            T &cast(void *pv) const
+            reference cast(void *pv) const
             {
-                return *static_cast<T *>(pv);
+                return *static_cast<typename remove_reference<T>::type *>(pv);
             }
         };
 


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

Reply via email to