Boost logo

Boost :

From: Llew Sion Goodstadt (leo.goodstadt_at_[hidden])
Date: 2005-07-26 11:50:07


> Doesn't seem like such a great idea to me. It forces you to pay at
> each iteration of a loop when you could pay once to ensure that your
> ending zip iterator is formed from the correct position in each
> sequence. In my opinion the zip_iterator documentation should be
> improved (quite a lot) to make the requirements more explicit.
For iterators over a container, that is indeed true. In which case,
surely it would be better to provide a constructor which calculates
the
minimum distance rather than relying on the user to remember to check
beforehand.

Leo


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