Stop calling std::list<>::size(), it's not O(1).

Suppress MSVC warning.
Fix error code for bad repeat range.


[SVN r31833]
This commit is contained in:
John Maddock
2005-11-30 13:56:54 +00:00
parent 9d76e95575
commit 2635121cc8
3 changed files with 4 additions and 3 deletions

View File

@ -889,7 +889,7 @@ bool basic_regex_parser<charT, traits>::parse_repeat_range(bool isbasic)
//
if(min > max)
{
fail(regex_constants::error_range, this->m_position - this->m_base);
fail(regex_constants::error_badbrace, this->m_position - this->m_base);
return false;
}
return parse_repeat(min, max);