Rule M4-5-1 (required, implementation, automated)

Expressions with type bool shall not be used as operands to built-in operators other than the assignment operator =, the logical operators

&&, ||, !, the equality operators == and ! =, the unary & operator, and the

conditional operator.

See MISRA C++ 2008 [7]