22-10-2024, 02:03 PM
We have to agree that the Autosar rule is unclear on this subject.
We agree your example doesn't have any undesirable behaviour, but if the rule were to explicitly allow that, it would also have to say something about code that only moves a subset of the members, say 'name', but not 'p'
We agree your example doesn't have any undesirable behaviour, but if the rule were to explicitly allow that, it would also have to say something about code that only moves a subset of the members, say 'name', but not 'p'
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group