From: AlisdairM (alisdair.meredith_at_[hidden])
Date: 2006-03-15 14:06:08


Zara wrote:

> This is specially evident when IteratorT is [const] char *, which is a
> valid random access iterator.

Why do you think const char * is a valid random access iterator?

It is merely an input iterator, and one of the many motivations for
improved iterator categories.

(Basically, no const-iterator can ever be more than an input iterator,
as bidirectional iterator refines both input *and* output iterator. All
the more advanced iterators are refinements of bidirectional.)

-- 
AlisdairM