Boost logo

Boost Users :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2008-03-02 18:50:20


Martin Wartens wrote:
> I used boost::iterator_adapter with a std::vector iterator, all parameters set
> to boost::use_default. (So this is the same as a plain std::vector iterator)
> With this configuration, the iterator tag is recognized as "input_iterator_tag"
> not "random_iterator_tag" as it must be.

If `is_reference<iterator_reference<your_adapted_iterator>::type>::value`
is `false`, this is not a bug.
Boost.Iterator relegates it to InputIterator,
because such iterator cannot conform to ForwardIterator
by the standard definition (at least in C++03).

Regards,

-- 
Shunsuke Sogame

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net