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

The loop-counter shall not be modified within condition or statement. See MISRA C++ 2008 [7]