mirror of
https://github.com/boostorg/regex.git
synced 2025-07-18 06:42:08 +02:00
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:
@ -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);
|
||||
|
@ -494,6 +494,7 @@ bool perl_matcher<BidiIterator, Allocator, traits>::match_char_repeat()
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#pragma warning(disable:4267)
|
||||
#endif
|
||||
#ifdef __BORLANDC__
|
||||
#pragma option push -w-8008 -w-8066 -w-8004
|
||||
|
Reference in New Issue
Block a user