Fixed bug that effect some searches

[SVN r18003]
This commit is contained in:
John Maddock
2003-03-19 12:19:14 +00:00
parent a31ae14cf8
commit ea96eafacc
2 changed files with 5 additions and 1 deletions

View File

@ -2068,7 +2068,7 @@ unsigned int BOOST_REGEX_CALL reg_expression<charT, traits, Allocator>::fixup_le
case re_detail::syntax_element_rep:
if((len == 0) && (1 == fixup_leading_rep(dat->next.p, static_cast<re_detail::re_repeat*>(dat)->alt.p) ))
{
static_cast<re_detail::re_repeat*>(dat)->leading = true;
static_cast<re_detail::re_repeat*>(dat)->leading = leading_lit;
return len;
}
return len;