Posts: 87
Threads: 68
Joined: Nov 2004
Reputation:
0
Am I correct in presuming rule 3-2-3 does not apply to friend declarations? For example, if I declare a class type in a header file, am I permitted to declare that class as a friend of another type in a different file?
Posts: 252
Threads: 1
Joined: Jun 2008
Reputation:
6
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
Posted by and on behalf of
the MISRA C++ Working Group