Boost logo

Boost :

From: John E. Potter (jpotter_at_[hidden])
Date: 2001-03-27 12:01:03

On Tue, 27 Mar 2001, Gary Powell wrote:

> However when we were constructing view policies dependent on the iterator
> type, I came across this problem, and that is, transform_iterator_generator
> specifies that iterator_adaptor has as an iterator tag type,
> "std::input_iterator_tag"
> VTL really needs this to be whatever the tag of the class Iterator that is
> passed in as a template argument. As in
> std::iterator_traits<Iterator>::iterator_category
> Is there a reason it's only a std::input_iterator_tag?

The only std::iterator with value semantics is input_iterator. All of the
others have reference semantics.

See Jeremy's recent proposal to change to two traits so that increment
and dereference can be independently specified.


Boost list run by bdawes at, gregod at, cpdaniel at, john at