Skip to content

Commit 1372e9a

Browse files
committed
Fix filter_iterator copy/converting constructor.
The constructed iterator would have an invalid end iterator because of a typo in storage initialization. Fixes #92.
1 parent 6428e55 commit 1372e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/iterator/filter_iterator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class filter_iterator :
104104

105105
template< typename OtherIterator, typename = enable_if_convertible_t< OtherIterator, Iterator > >
106106
filter_iterator(filter_iterator< Predicate, OtherIterator > const& t) :
107-
super_t(t.base()), m_storage(t.m_storage.predicate(), m_storage.m_end)
107+
super_t(t.base()), m_storage(t.m_storage.predicate(), t.m_storage.m_end)
108108
{}
109109

110110
Predicate predicate() const { return m_storage.predicate(); }

0 commit comments

Comments
 (0)