forked from boostorg/regex
BREAKING CHANGE: change mark_count to do what's documented (and what the std does).
See https://svn.boost.org/trac/boost/ticket/9227.
This commit is contained in:
@ -511,7 +511,7 @@ void test(boost::basic_regex<charT, traits>& r, const test_regex_search_tag&)
|
||||
}
|
||||
}
|
||||
r.assign(expression, syntax_options | boost::regbase::save_subexpression_location);
|
||||
for(std::size_t i = 1; i < r.mark_count(); ++i)
|
||||
for(std::size_t i = 0; i < r.mark_count(); ++i)
|
||||
{
|
||||
std::pair<const charT*, const charT*> p = r.subexpression(i);
|
||||
if(*p.first != '(')
|
||||
|
Reference in New Issue
Block a user