From bfa0f288303661b80ccd8e53e5b8b3384f9e9e1e Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 21 Jul 2004 11:18:16 +0000 Subject: [PATCH] bugfix from Stefan Slapeta [SVN r23887] --- include/boost/algorithm/string/find_iterator.hpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/boost/algorithm/string/find_iterator.hpp b/include/boost/algorithm/string/find_iterator.hpp index 1144344..a660b9b 100644 --- a/include/boost/algorithm/string/find_iterator.hpp +++ b/include/boost/algorithm/string/find_iterator.hpp @@ -136,14 +136,10 @@ namespace boost { // comparison bool equal( const find_iterator& Other ) const { - return + return eof() || Other.eof() ? eof() == Other.eof() : ( m_Match==Other.m_Match && m_End==Other.m_End - ) - || - ( - eof() && Other.eof() ); } @@ -301,15 +297,11 @@ namespace boost { // comparison bool equal( const split_iterator& Other ) const { - return + return eof() || Other.eof() ? eof() == Other.eof() : ( m_Match==Other.m_Match && m_Next==Other.m_Next && m_End==Other.m_End - ) - || - ( - eof() && Other.eof() ); }