Ticket #6346: fixbeginend.patch

File fixbeginend.patch, 659 bytes (added by nowahn <nowahn@…>, 11 years ago)

Patch fixing the bug.

  • basic_regex.hpp

    diff -dur a/basic_regex.hpp b/basic_regex.hpp
    a b  
    243243   // begin, end:
    244244   const_iterator BOOST_REGEX_CALL begin()const
    245245   {
    246       return (!this->m_status ? 0 : this->m_expression);
     246      return (this->m_status ? 0 : this->m_expression);
    247247   }
    248248   const_iterator BOOST_REGEX_CALL end()const
    249249   {
    250       return (!this->m_status ? 0 : this->m_expression + this->m_expression_len);
     250      return (this->m_status ? 0 : this->m_expression + this->m_expression_len);
    251251   }
    252252   flag_type BOOST_REGEX_CALL flags()const
    253253   {