Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 8-5-1 Must a non-static class member variable also explicitly initialized in constructor?
#2
The rule requires that all member objects have defined values before use. As members of class type will be initialised by their constructor, they satisify the rule without explicit initialisation
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)