
15 Mar
2006
15 Mar
'06
7:06 p.m.
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