MISRA Discussion Forums

Full Version: 0-1-2 Infeasible paths clarification
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a pure virtual function like
virtual void OnEvent(EventName event, State& superState) = 0;

For some of the derived classes, the implementation uses both of the the parameters. For others, the parameters are not used at all.

Is this acceptable?
We assume you meant to refer to 0-1-12 in your title?

If that is the case, then the usage you describe is compliant.