Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A12-4-1 - Does it apply to private inheritance?
#3
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.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: A12-4-1 - Does it apply to private inheritance? - by misra cpp - 22-03-2022, 11:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)