Don't copy default-initialized iterator, which might be singlular.

[SVN r23843]
This commit is contained in:
Vladimir Prus
2004-07-20 13:42:31 +00:00
parent f6752d3ae1
commit f16de45e46

View File

@ -72,9 +72,13 @@ namespace boost {
typedef IteratorT const_iterator; typedef IteratorT const_iterator;
//! iterator type //! iterator type
typedef IteratorT iterator; typedef IteratorT iterator;
//! Empty constructor
iterator_range() :
m_Begin(), m_End() {}
//! Constructor from a pair of iterators //! Constructor from a pair of iterators
iterator_range( iterator Begin=iterator(), iterator End=iterator() ) : iterator_range( iterator Begin, iterator End ) :
m_Begin(Begin), m_End(End) {} m_Begin(Begin), m_End(End) {}
//! Constructor from a std::pair //! Constructor from a std::pair