14-02-2025, 01:25 PM
Its a bit difficult to answer your question as B doesn't have any members. We assume it has a member 'sometype *ptr;' but does it have any other members?
If 'ptr' is the only member, then we'd say that the example is compliant with both A8-4-5 and A12-8-1.
If 'ptr' is the only member, then we'd say that the example is compliant with both A8-4-5 and A12-8-1.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group