10-07-2017, 10:02 AM
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)"
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
the MISRA C++ Working Group