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

Modified Files:
        matches.hpp proto_fwd.hpp 
Log Message:
proto::N for matching arrays of any length

Index: matches.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/matches.hpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- matches.hpp 3 Feb 2007 00:14:33 -0000       1.35
+++ matches.hpp 3 Feb 2007 23:48:48 -0000       1.36
@@ -148,6 +148,11 @@
               : mpl::true_
             {};
 
+            template<typename T, std::size_t M, typename U>
+            struct terminal_matches<T(&)[M], U(&)[proto::N]>
+              : is_convertible<T(&)[M], U(&)[M]>
+            {};
+
             // matches_impl
             template<typename Expr, typename Grammar>
             struct matches_impl

Index: proto_fwd.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/proto_fwd.hpp,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- proto_fwd.hpp       3 Feb 2007 00:50:38 -0000       1.48
+++ proto_fwd.hpp       3 Feb 2007 23:48:49 -0000       1.49
@@ -9,6 +9,8 @@
 #ifndef BOOST_PROTO_FWD_HPP_EAN_04_01_2005
 #define BOOST_PROTO_FWD_HPP_EAN_04_01_2005
 
+#include <cstddef>
+#include <climits>
 #include <boost/xpressive/proto/detail/prefix.hpp>
 #include <boost/preprocessor/arithmetic/sub.hpp>
 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
@@ -447,6 +449,8 @@
     template<typename Grammar>
     struct vararg;
 
+    int const N = INT_MAX;
+
 }} // namespace boost::proto
 
 #endif


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to