Movatterモバイル変換


[0]ホーム

URL:


Issue 2431 - WG21 CWG Issues
Title
Full-expressions and temporaries bound to references
Status
c++20
Section
6.10 [basic.exec]
Submitter
Andrey Erokhin

Created on2019-02-07.00:00:00 last changed62 months ago

Messages

msg6433 (view)
Date: 2019-10-15.00:00:00

Proposed resolution (October, 2019):

Change 6.10 [basic.exec] bullet 5.5 as follows:

Afull-expression is

  • ...

  • an invocation of a destructor generated at the end of thelifetime of an object other than a temporary object(6.8.7 [class.temporary])whose lifetime has not beenextended, or

  • ...

msg6432 (view)
Date: 2019-11-15.00:00:00

[Adopted as a DR at the November, 2019 meeting.]

According to 6.10 [basic.exec] paragraph 5,

Afull-expression is

  • ...

  • an invocation of a destructor generated at the end ofthe lifetime of an object other than a temporary object(6.8.7 [class.temporary]), or

  • ...

This definition excludes the destruction of temporariesthat are bound to references from being treated asfull-expressions. It is not clear whether this omission hasobservable effects or not. Seeeditorial issue 2664.

History
DateUserActionArgs
2020-12-15 00:00:00adminsetmessages: +msg6433
2019-02-07 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp