17-06-2022, 12:29 PM
We agree the intent of 12-8-4 was to prevent calls made to copy constructors and/or copy assignment operators, so you are compliant.
However, what you are proposing violates the spirit of the rationale for 12-8-4, and may be a violation of other rules.
However, what you are proposing violates the spirit of the rationale for 12-8-4, and may be a violation of other rules.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group