|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62696 - in trunk: boost/algorithm/string libs/algorithm/string/test
From: steven_at_[hidden]
Date: 2010-06-09 19:12:56
Author: steven_watanabe
Date: 2010-06-09 19:12:56 EDT (Wed, 09 Jun 2010)
New Revision: 62696
URL: http://svn.boost.org/trac/boost/changeset/62696
Log:
Copy m_bEof in the split_iterator copy constructor. Fixes #4271
Text files modified:
trunk/boost/algorithm/string/find_iterator.hpp | 2 +-
trunk/libs/algorithm/string/test/split_test.cpp | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/algorithm/string/find_iterator.hpp
==============================================================================
--- trunk/boost/algorithm/string/find_iterator.hpp (original)
+++ trunk/boost/algorithm/string/find_iterator.hpp 2010-06-09 19:12:56 EDT (Wed, 09 Jun 2010)
@@ -240,7 +240,7 @@
m_Match(Other.m_Match),
m_Next(Other.m_Next),
m_End(Other.m_End),
- m_bEof(false)
+ m_bEof(Other.m_bEof)
{}
//! Constructor
Modified: trunk/libs/algorithm/string/test/split_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/split_test.cpp (original)
+++ trunk/libs/algorithm/string/test/split_test.cpp 2010-06-09 19:12:56 EDT (Wed, 09 Jun 2010)
@@ -139,6 +139,7 @@
++siter;
BOOST_CHECK(equals(*siter, "abb"));
++siter;
+ BOOST_CHECK(siter==split_iterator<string::iterator>(siter));
BOOST_CHECK(siter==split_iterator<string::iterator>());
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk