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

Modified Files:
        regex_actions.hpp 
Log Message:
rename var() to ref(), add val() and cref()

Index: regex_actions.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/regex_actions.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- regex_actions.hpp   23 Mar 2007 00:09:05 -0000      1.3
+++ regex_actions.hpp   23 Mar 2007 21:43:13 -0000      1.4
@@ -188,9 +188,21 @@
     }
 
     template<typename T>
-    typename proto::result_of::as_arg<T>::type var(T &t)
+    typename proto::terminal<T>::type val(T const &t)
     {
-        return proto::as_arg(t);
+        return proto::terminal<T>::type::make(t);
+    }
+
+    template<typename T>
+    typename proto::terminal<T &>::type ref(T &t)
+    {
+        return proto::terminal<T &>::type::make(t);
+    }
+
+    template<typename T>
+    typename proto::terminal<T const &>::type cref(T const &t)
+    {
+        return proto::terminal<T const &>::type::make(t);
     }
 
     template<typename Predicate>


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