mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-06 09:16:33 +02:00
Copy m_bEof in the split_iterator copy constructor. Fixes #4271
[SVN r62696]
This commit is contained in:
@ -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
|
||||||
|
@ -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>());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user