From 06474a276d89ad5be742a7972b7b3fe7961a0397 Mon Sep 17 00:00:00 2001 From: Pavol Droba Date: Tue, 13 Jul 2004 15:14:35 +0000 Subject: [PATCH] Fixed construction to not restrict usage of iterators, that are not default constructible [SVN r23497] --- include/boost/algorithm/string/iterator_range.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/boost/algorithm/string/iterator_range.hpp b/include/boost/algorithm/string/iterator_range.hpp index bdc01a0..1510138 100644 --- a/include/boost/algorithm/string/iterator_range.hpp +++ b/include/boost/algorithm/string/iterator_range.hpp @@ -72,12 +72,9 @@ namespace boost { typedef IteratorT const_iterator; //! iterator type typedef IteratorT iterator; - - //! Default constructor - iterator_range() : m_Begin(), m_End() {} - + //! Constructor from a pair of iterators - iterator_range( iterator Begin, iterator End ) : + iterator_range( iterator Begin=iterator(), iterator End=iterator() ) : m_Begin(Begin), m_End(End) {} //! Constructor from a std::pair