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

@ -243,11 +243,11 @@ public:
// begin, end:
const_iterator BOOST_REGEX_CALL begin()const
{
return (!this->m_status ? 0 : this->m_expression);
return (this->m_status ? 0 : this->m_expression);
}
const_iterator BOOST_REGEX_CALL end()const
{
return (!this->m_status ? 0 : this->m_expression + this->m_expression_len);
return (this->m_status ? 0 : this->m_expression + this->m_expression_len);
}
flag_type BOOST_REGEX_CALL flags()const
{