
19 Feb
2013
19 Feb
'13
12:58 a.m.
On Mon, Feb 18, 2013 at 4:54 PM, Christian Henning <chhenning@gmail.com>wrote:
Actually that doesn't work. How would the user signal to just skip a scanline? I cannot add a parameter to operator++.
scanline_read_iterator< Reader >& operator++( bool read_scanline = true ) { //to something }
The "do something" is in operator*, no?
Correct. I changed the code now so that the user will have to skip() to jump over scanlines. I think that's a good solution. If the user doesn't call skip the current scanline will be read.
So...doing 2 operator++'s in a row isn't logically equivalent? - Jeff