20-12-2024, 02:05 PM
"Overloaded operators are excluded from this requirement" in the rationale appears to introduce a new exception, but this was not the intent - as illustrated in example f2
We plan to clarify this by changing:
"Overloaded operators are excluded from this requirement, as they should behave in the same way as built-in operators." -> to
"Calls to overloaded operators that don't use function call syntax are excluded from this requirement, as they should behave in the same way as built-in operators" reiterating the requirement in the amplification
We plan to clarify this by changing:
"Overloaded operators are excluded from this requirement, as they should behave in the same way as built-in operators." -> to
"Calls to overloaded operators that don't use function call syntax are excluded from this requirement, as they should behave in the same way as built-in operators" reiterating the requirement in the amplification
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group