regex: retry due to broken connection

[SVN r8171]
This commit is contained in:
John Maddock
2000-11-11 12:10:38 +00:00
parent 31c9a1f9c6
commit 680e5b9e13
4 changed files with 10 additions and 3 deletions

View File

@ -298,7 +298,7 @@ void expand_escapes(string_type& s)
int val = 0;
unsigned int pos = i;
++i;
while( (s[i] >= BOOST_RE_STR('0')) && (s[i] <= BOOST_RE_STR('9')) && (i < s.size()))
while((i < s.size()) && (s[i] >= BOOST_RE_STR('0')) && (s[i] <= BOOST_RE_STR('9')))
{
val *= 10;
val += s[i] - BOOST_RE_STR('0');