
10 Feb
2013
10 Feb
'13
3:29 p.m.
10.02.2013 17:10, Ian Hobson:
Initial implementation available at http://github.com/irh/adjacent_for_each
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 http://www.boost.org/doc/libs/1_53_0/libs/iterator/doc/index.html#new-style-... and http://www.boost.org/doc/libs/1_53_0/libs/concept_check/concept_check.htm -- Evgeny Panasyuk