Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
10.2.3 Amplification
#4
Your example is compliant, as the value of e is not being used.

The amplification says the rule applies to use 'as the source of an assignment', but reference binding is not assignment.
There may be subsequent non-compliances, depending on how eref is used, i.e. any place where the use of e would be non-compliant, is non-compliant if eref is used instead.

The rule should clarify that reference binding is not an assignment, and this will be added in the next version.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
10.2.3 Amplification - by hahn - 26-03-2024, 03:08 PM
RE: 10.2.3 Amplification - by misra cpp - 12-04-2024, 02:20 PM
RE: 10.2.3 Amplification - by hahn - 06-05-2024, 08:57 AM
RE: 10.2.3 Amplification - by misra cpp - 17-05-2024, 02:49 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)