Fixed bug that effect some searches

[SVN r18003]
This commit is contained in:
John Maddock
2003-03-19 12:19:14 +00:00
parent 6d4dd63cba
commit 51fe53f437

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;
@ -2121,3 +2121,4 @@ void BOOST_REGEX_CALL reg_expression<charT, traits, Allocator>::fail(unsigned in