mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-03 07:46:49 +02:00
Fixed construction to not restrict usage of iterators, that are not
default constructible [SVN r23497]
This commit is contained in:
@ -73,11 +73,8 @@ namespace boost {
|
|||||||
//! iterator type
|
//! iterator type
|
||||||
typedef IteratorT iterator;
|
typedef IteratorT iterator;
|
||||||
|
|
||||||
//! Default constructor
|
|
||||||
iterator_range() : m_Begin(), m_End() {}
|
|
||||||
|
|
||||||
//! Constructor from a pair of iterators
|
//! 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) {}
|
m_Begin(Begin), m_End(End) {}
|
||||||
|
|
||||||
//! Constructor from a std::pair
|
//! Constructor from a std::pair
|
||||||
|
Reference in New Issue
Block a user