You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise, if T is a reference type, a prvalue is generated. The prvalue initializes its result object by copy-list-initialization. The prvalue is then used to direct-initialize the reference.
The rule only says two things:
Generate a prvalue.
The effect of the prvalue(how it initializes the result object).
We didn't tell the story about how the prvalue was generated/ formed. Moreover, there is a case that the prvalue cannot be formed at all. It ought to be that we should associate the prvalue with the rules regarding copy-list-initialization. The suggestion might be:
Otherwise, if T is a reference type, an invented declaration U x = H; is introduced, where U is the referenced type and H is the initializer list; the program is ill-formed if the copy-list-initialization is ill-formed. The invented variable x is a prvalue. x is then used to direct-initialize the reference.
The text was updated successfully, but these errors were encountered:
xmh0511
changed the title
[dcl.init.list p3.10 The prvalue abruptly in the initialization of the reference appears without any specification
[dcl.init.list p3.10 The prvalue mentioned in the initialization of the reference abruptly appears without any specification
May 11, 2022
[dcl.init.list p3.10 says
The rule only says two things:
We didn't tell the story about how the prvalue was generated/ formed. Moreover, there is a case that the prvalue cannot be formed at all. It ought to be that we should associate the prvalue with the rules regarding copy-list-initialization. The suggestion might be:
The text was updated successfully, but these errors were encountered: