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

Modified Files:
        regex_compiler.hpp 
Log Message:
fix off-by-one for backrefs greater than 9, add test case

Index: regex_compiler.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/regex_compiler.hpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- regex_compiler.hpp  17 Apr 2007 07:23:38 -0000      1.13
+++ regex_compiler.hpp  26 Apr 2007 16:38:01 -0000      1.14
@@ -606,7 +606,7 @@
             int mark_nbr = detail::toi(tmp, end, this->rxtraits(), 10, 999);
 
             // If the resulting number could conceivably be a backref, then it 
is.
-            if(10 > mark_nbr || mark_nbr < static_cast<int>(this->mark_count_))
+            if(10 > mark_nbr || mark_nbr <= 
static_cast<int>(this->mark_count_))
             {
                 begin = tmp;
                 escape_value esc = {0, mark_nbr, 0, detail::escape_mark};


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