Const iterators, what's next ?

Bart Coppens kde at bartcoppens.be
Thu Oct 19 11:54:21 CEST 2006


On Thursday 19 October 2006 08:28, Casper Boemann wrote:
> First of all I don't get it. What exactly have you constified. A const
> iterator can't move so it can't be like a const class.
Well it's more to draw an analogue with C++'s const char* ptr; which you can 
still move around, but not write to (compared to char* const ptr; which you 
can write to, but not move around). It's not really the class, but the thing 
that is pointed to that is const.

Bart


More information about the kimageshop mailing list