22-03-2022, 11:10 AM
Currently this rule applies in the context of private inheritance, so both classes in your example would be flagged as violations, as they don't declare destructors.
For the next version of MISRA C++, we are proposing to clarifying that this rule only applies in the context of public inheritance. We aren't currently planning to say anything about private or protected inheritance.
For the next version of MISRA C++, we are proposing to clarifying that this rule only applies in the context of public inheritance. We aren't currently planning to say anything about private or protected inheritance.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group