|
Boost : |
Subject: Re: [boost] [gil::io] Feedback for scanline_read_iterator
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2013-02-18 19:58:16
On Mon, Feb 18, 2013 at 4:54 PM, Christian Henning <chhenning_at_[hidden]>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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk