
AFAIU, the proposal is to support equivalent to this: scanline_read_iterator it =... std::advance (it, 7); // no I/O performed auto& buf = *it; // fetch 7th scanline data now -- Mateusz Loskot, http://mateusz.loskot.net (Sent from mobile, apology for top-posting or broken quotes) On Feb 19, 2013 12:54 AM, "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.
Christian
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost