Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule A13-2-3 - Relational operator shall return a boolean value
#2
You are right that this rule simply requires that the return type be 'bool'  (a typedef alias for bool would also be acceptable)

Any implicit conversions of non-Booleans values in a Boolean context should be caught by other rules.

(Sorry for the delay in replying, we had a log-in problem with the Bulletin Board)
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: Rule A13-2-3 - Relational operator shall return a boolean value - by misra cpp - 11-01-2022, 11:23 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)