Fix begin() and end() members and add tests.

Fixes #6346.

[SVN r79340]
This commit is contained in:
John Maddock
2012-07-07 18:36:25 +00:00
parent 3bfba1a7cf
commit ab6b0d9971
4 changed files with 11 additions and 3 deletions

View File

@ -482,6 +482,10 @@ void test(boost::basic_regex<charT, traits>& r, const test_regex_search_tag&)
{
BOOST_REGEX_TEST_ERROR("Expression did not compile when it should have done, error code = " << r.status(), charT);
}
if(expression != std::basic_string<charT>(r.begin(), r.end()))
{
BOOST_REGEX_TEST_ERROR("Stored expression string was incorrect", charT);
}
test_simple_search(r);
test_regex_iterator(r);
test_regex_token_iterator(r);