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:
jzmaddock
2013-12-14 17:43:24 +00:00
parent e5bbcac3da
commit 937cd366c5
6 changed files with 10 additions and 12 deletions

View File

@ -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 != '(')