Boost logo

Boost :

Subject: Re: [boost] [algorithm] adjacent_for_each interest?
From: Evgeny Panasyuk (evgeny.panasyuk_at_[hidden])
Date: 2013-02-10 10:29:21

10.02.2013 17:10, Ian Hobson:

> Initial implementation available at

I have just noticed that you use:

for (InputIterator next = first + 1; next != last; first++, next++)

"first + 1" is legal only for RandomAccessIterator. You should test your
algorithm on real InputIterator.

P.S. Also consider

Evgeny Panasyuk

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