Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2007-04-27 12:54:36


Is it too late to get a bug fix in for 1.34? The change is very low risk
(change a < to <=), but it makes back-references over 9 work as they
should. The change was applied to HEAD a couple of days ago, and caused
no problems there. I've tested against the RC branch locally with
positive results.

Thomas?

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

Index: regex_compiler.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/regex_compiler.hpp,v
retrieving revision 1.5
diff -b -d -u -r1.5 regex_compiler.hpp
--- regex_compiler.hpp 15 Dec 2005 08:57:52 -0000 1.5
+++ regex_compiler.hpp 27 Apr 2007 16:48:32 -0000
@@ -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};


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk