
14 May
2004
14 May
'04
1:34 p.m.
Interesting. I have very similar design that I call input_iterator facade. The only difference is that I do not have found_eof() interface. Instead I use result value of get method. So increment looks like: void increment() { m_valid = static_cast<Derived&>(*this).get(); } Unfortunately new design does not allow you to call get in constructor. I even thought to present version that uses mixed old/new design with input_iterator_facde accepting policy that implements get method. Anyway why don't we add something like this in iterator library. I found it quite usefull (tokeen_iterator could use it for example) Gennadiy.