Rule M6-2-1 (required, implementation, automated)
Assignment operators shall not be used in sub-expressions.
See MISRA C++ 2008 [7]
Exception
It is allowed that a condition of the form type-specifier-seq declarator uses an assignment operator. This exception is introduced because alternative mechanisms for achieving the same effect are cumbersome and error-prone.