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

The first operand of a conditional-operator shall have type bool.

See MISRA C++ 2008 [7]