Rule M6-5-5 (required, implementation, automated)

A loop-control-variable other than the loop-counter shall not be modified within condition or expression. See MISRA C++ 2008 [7]