MISRA Discussion Forums

Full Version: Clarification for rule 11-0-1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

the rule text only mentions classes, not structs.
Now, in C++ struct and class are synonyms, except that by default everything is public in a struct.
So, does this rule implicitly apply to all structs as well?
Thank you.
The intent is that this rule applies to all classes and non-POD structs

The rule doesn't apply to POD structs.

A clarification of this will be considered for the next version