20-12-2024, 02:24 PM
The issue is with functions like strcmp, where an implicit conversion to bool may not give the answer expected (0 being equality)
Also in a case like if (a = b) .... (though this is also non-compliant with another rule)
Also in a case like if (a = b) .... (though this is also non-compliant with another rule)
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group