Ticket #5403: patch2.patch

File patch2.patch, 691 bytes (added by ttan@…, 12 years ago)

this patch replaces the previous one

  • operations.hpp

     
    686686        else
    687687        {
    688688          m_stack.push(directory_iterator(m_stack.top()->path(), *ec));
    689           if (*ec) return;
     689          if (*ec) {++m_level; return;}
    690690        }
    691691        if (m_stack.top() != directory_iterator())
    692692        {
     
    768768    {
    769769      BOOST_ASSERT(m_imp.get() && "increment() on end recursive_directory_iterator");
    770770      m_imp->increment(&ec);
     771       if (m_imp->m_stack.empty())
     772        m_imp.reset(); // done, so make end iterator
    771773      return *this;
    772774    }
    773775