Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 7.0.2: Unclear/questionable rationale
#2
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)
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: Rule 7.0.2: Unclear/questionable rationale - by misra cpp - 20-12-2024, 02:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)