
13 Sep
2005
13 Sep
'05
6:07 p.m.
Stuart Dootson
I think you'll need to use something like:
for(filter_itr f(i.begin(), i.end()); f != filter_itr(i.end()); ++f)
Or use make_filter_iterator.
filter_iterator doesn't have an assignment operator,
Whoa there, it certainly does! All iterators are required to support assignment. It doesn't have an implicit conversion from the underlying iterator type, though, which rules out using copy initialization from anything other than another filter_iterator.
you have to go through the relevant constructor (see http://www.boost.org/libs/iterator/doc/filter_iterator.html#filter-iterator-...)
-- Dave Abrahams Boost Consulting www.boost-consulting.com