Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 2-10-6
#1
Shouldn't example one be compliant?

typedef struct vector {...} vector;

The two vector identifiers are both referring to the same type.
<t></t>
Reply
#2
You are correct, the first example should be compliant.

This will be corrected in a future edition or Technical Corrigendum
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)