23-02-2022, 10:36 AM
The code doesn't violate the rule, as the value returned by the function does not allow any class member to be modified (see related question "Question about an example from rule 9-3-1")
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group