Update of /cvsroot/boost/boost/boost/xpressive
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23560
Modified Files:
Tag: RC_1_34_0
regex_compiler.hpp
Log Message:
fix off-by-one for backreferences over 9
Index: regex_compiler.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/regex_compiler.hpp,v
retrieving revision 1.5
retrieving revision 1.5.4.1
diff -u -d -r1.5 -r1.5.4.1
--- regex_compiler.hpp 15 Dec 2005 08:57:52 -0000 1.5
+++ regex_compiler.hpp 27 Apr 2007 18:02:44 -0000 1.5.4.1
@@ -530,7 +530,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