Why was the definition of a variable changed during the development of C++11?

后端 未结 1 991
无人共我
无人共我 2020-12-11 02:29

n3035 says:

A variable is introduced by the declaration of an object. The variable\'s name denotes the object.

n3090 says:

相关标签:
1条回答
  • 2020-12-11 03:15

    The change was in response to CWG defect 633. The list of changes related to this can be found in n2993:

    The goal of these changes is to expand the meaning of "variable" to encompass both named objects and references, and to apply the term consistently wherever feasible.

    0 讨论(0)
提交回复
热议问题