Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 4-5-1 prohibits sizeof(bool_type_variable)?
#4
You're right that the C++ standard does describe sizeof as an operator, and sizeof(bool) is a well defined operation so ought to be allowed

This will be addressed in a future edition of the rules
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)