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:

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


Boost list run by bdawes at, gregod at, cpdaniel at, john at