Added fix to ensure that expressions prefixed with \` do not scan through the text unnecessarily.

[SVN r25625]
This commit is contained in:
John Maddock
2004-10-08 12:45:31 +00:00
parent 24fec31d2c
commit bc140f1948

View File

@ -2100,6 +2100,8 @@ template <class charT, class traits, class Allocator>
unsigned int BOOST_REGEX_CALL reg_expression<charT, traits, Allocator>::fixup_leading_rep(re_detail::re_syntax_base* dat, re_detail::re_syntax_base* arg_end)
{
unsigned int len = 0;
if((_restart_type >= restart_word) || (_restart_type <= restart_continue))
return 0;
bool leading_lit = arg_end ? false : true;
while(dat != arg_end)
{