Regex: previous fix could go into infinite loop when a comment was followed by a "(", fix that.

This commit is contained in:
jzmaddock
2017-10-26 13:05:33 +01:00
parent 50386af870
commit 3693a5de10

View File

@ -1104,8 +1104,10 @@ bool basic_regex_parser<charT, traits>::parse_repeat(std::size_t low, std::size_
while ((m_position != m_end)
&& (this->m_traits.syntax_type(*m_position++) != regex_constants::syntax_close_mark)) {
}
contin = true;
}
contin = true;
else
contin = false;
}
}
else