Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 0-1-6 and Boolean variables
#14
Short answer 'No'

We stand by both replies, return b1 && b2; etc. are compliant, the example with f2 and k isn't.

We think the bit of explanation that's missing is that the rule was not intended to apply to short-cut expressions

This rule is under review for the next version
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)