
20 Feb
2013
20 Feb
'13
1:33 a.m.
What I *think* you want is for operator++ to conditionally call _reader->skip (if the previous operator++ had not been followed by a operator*), while operator* should conditionally call _reader->read (depending on if there had been an intervening operator++ after the previous operator*). So, I think you'd need 2 boolean flags.
Does that make sense? (I might objectively not be making sense, I'm not sure.)
I think your thinking makes sense! I have updated the code here: http://svn.boost.org/svn/boost/trunk/boost/gil/extension/io/detail/scanline_... If you could have a look that would be very kind. Thanks, Christian