Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule #3-2-3 and Forward Declarations?
#5
This rule does not preclude the use of friend or forward reference statements, but these must be in a separate header file.

A future edition may reconsider this point

The second question, your examples are compliant - the objective is to ensure that class definitions are only made in one file (and not repeated in multiple translation units)"
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)