Have you tried using llvm::next()? IIRC that is the canonical way to do what you want. Michael On Sep 2, 2013, at 3:01 AM, Konstantin Tokarev <annulen at yandex.ru> wrote: > <0001-Don-t-increment-begin-iterators-of-std-vector.patch>