Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 0.1.2
#2
"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
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
Rule 0.1.2 - by stephanmuench - 21-11-2024, 01:12 PM
RE: Rule 0.1.2 - by misra cpp - 20-12-2024, 02:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)