mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-31 05:17:20 +02:00
Fix filter_iterator copy/converting constructor.
The constructed iterator would have an invalid end iterator because of a typo in storage initialization. Fixes https://github.com/boostorg/iterator/issues/92.
This commit is contained in:
@ -104,7 +104,7 @@ public:
|
||||
|
||||
template< typename OtherIterator, typename = enable_if_convertible_t< OtherIterator, Iterator > >
|
||||
filter_iterator(filter_iterator< Predicate, OtherIterator > const& t) :
|
||||
super_t(t.base()), m_storage(t.m_storage.predicate(), m_storage.m_end)
|
||||
super_t(t.base()), m_storage(t.m_storage.predicate(), t.m_storage.m_end)
|
||||
{}
|
||||
|
||||
Predicate predicate() const { return m_storage.predicate(); }
|
||||
|
Reference in New Issue
Block a user