Boost logo

Boost :

Subject: Re: [boost] [gil::io] Feedback for scanline_read_iterator
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-02-19 20:33:01


>
> 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_read_iterator.hpp

If you could have a look that would be very kind.

Thanks,
Christian


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