Copy m_bEof in the split_iterator copy constructor. Fixes #4271

[SVN r62696]
This commit is contained in:
Steven Watanabe
2010-06-09 23:12:56 +00:00
parent 672775545d
commit 42147c8385
2 changed files with 2 additions and 1 deletions

View File

@ -240,7 +240,7 @@ namespace boost {
m_Match(Other.m_Match), m_Match(Other.m_Match),
m_Next(Other.m_Next), m_Next(Other.m_Next),
m_End(Other.m_End), m_End(Other.m_End),
m_bEof(false) m_bEof(Other.m_bEof)
{} {}
//! Constructor //! Constructor

View File

@ -139,6 +139,7 @@ void iterator_test()
++siter; ++siter;
BOOST_CHECK(equals(*siter, "abb")); BOOST_CHECK(equals(*siter, "abb"));
++siter; ++siter;
BOOST_CHECK(siter==split_iterator<string::iterator>(siter));
BOOST_CHECK(siter==split_iterator<string::iterator>()); BOOST_CHECK(siter==split_iterator<string::iterator>());
} }