28-03-2025, 02:17 PM
The aim of this rule is not to force symmetry. As you point out, this may not be required.
The aim is to limit interactions between the intended behaviour and the possibility of implicit conversions, so either of your approaches may be appropriate, depending upon the required behaviour.
The aim is to limit interactions between the intended behaviour and the possibility of implicit conversions, so either of your approaches may be appropriate, depending upon the required behaviour.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group