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

Modified Files:
        toy_spirit2.cpp 
Log Message:
remove if_matches and if_not_matches as redundant interfaces

Index: toy_spirit2.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/toy_spirit2.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- toy_spirit2.cpp     19 Jun 2007 01:07:11 -0000      1.16
+++ toy_spirit2.cpp     19 Jun 2007 06:13:25 -0000      1.17
@@ -492,7 +492,7 @@
     };
 
     template<typename Rule, typename Iterator>
-    typename proto::if_matches< Rule, ToySpiritGrammar, bool >::type
+    typename enable_if<proto::matches< Rule, ToySpiritGrammar >, bool >::type
     parse_impl(Rule const &rule, Iterator begin, Iterator end)
     {
         mpl::false_ is_case_sensitive;
@@ -502,7 +502,7 @@
 
     // 2nd overload provides a short error message for invalid rules
     template<typename Rule, typename Iterator>
-    typename proto::if_not_matches< Rule, ToySpiritGrammar, bool >::type
+    typename disable_if<proto::matches< Rule, ToySpiritGrammar >, bool >::type
     parse_impl(Rule const &rule, Iterator begin, Iterator end)
     {
         BOOST_MPL_ASSERT((proto::matches<Rule, ToySpiritGrammar>));


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