Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2003-09-28 12:48:05


Thomas Witt wrote:

>
> Hi Keith,
>
> Just a short remark, more to follow.
>
> Keith MacDonald wrote:
>
>>
>> class const_iterator
>> : public boost_const_iterator
>
>
> This does not work, it never did and it never will. First rule of
> iterators: Don't derive from an iterator.

Ok, I messed up. This does work. But

class iterator : public const_iterator { ... };

does not.

There is one thing I don't understand, why do you use ia at all.
unsigned char* can be used as an iterator an AFAICS you do not adapt the
underlying iterator in any way.

Thomas


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk