Rule M5-14-1 (required, implementation, automated)

The right hand operand of a logical &&, || operators shall not contain side effects. See MISRA C++ 2008 [7]