From 4185e3fb31fa6e978b3f1141f0ab1478def902a8 Mon Sep 17 00:00:00 2001 From: Pavol Droba Date: Tue, 13 Jul 2004 15:00:36 +0000 Subject: [PATCH] Fixed dangling pointer problem [SVN r23495] --- include/boost/algorithm/string/iter_find.hpp | 1 + include/boost/algorithm/string/iterator_range.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/algorithm/string/iter_find.hpp b/include/boost/algorithm/string/iter_find.hpp index f7866a7..32f4ced 100644 --- a/include/boost/algorithm/string/iter_find.hpp +++ b/include/boost/algorithm/string/iter_find.hpp @@ -88,6 +88,7 @@ namespace boost { make_transform_iterator( find_iterator_type( begin(Input), InputEnd, Finder ), copy_range_type()); + transform_iter_type itEnd= make_transform_iterator( find_iterator_type(), diff --git a/include/boost/algorithm/string/iterator_range.hpp b/include/boost/algorithm/string/iterator_range.hpp index 3e27661..bdc01a0 100644 --- a/include/boost/algorithm/string/iterator_range.hpp +++ b/include/boost/algorithm/string/iterator_range.hpp @@ -74,7 +74,7 @@ namespace boost { typedef IteratorT iterator; //! Default constructor - iterator_range() {} + iterator_range() : m_Begin(), m_End() {} //! Constructor from a pair of iterators iterator_range( iterator Begin, iterator End ) :