Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2255 A type trait to detect reference binding to temporary #949

Closed
wg21bot opened this issue Nov 23, 2020 · 9 comments · Fixed by cplusplus/draft#5283
Closed

P2255 A type trait to detect reference binding to temporary #949

wg21bot opened this issue Nov 23, 2020 · 9 comments · Fixed by cplusplus/draft#5283
Labels
C++23 Targeted at C++23 expedited-library-evolution-electronic-poll Papers that were reviewed on the mailing list and then advanced directly to electronic polling. IS Ship vehicle: IS LWG Library plenary-approved Papers approved for inclusion in their target vehicle by plenary vote. size - small paper size estimate
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Nov 23, 2020

P2255R0 A type trait to detect reference binding to temporary (Tim Song)

@wg21bot wg21bot added EWG Evolution LEWG Library Evolution labels Nov 23, 2020
@wg21bot wg21bot added this to the 2020-telecon milestone Nov 23, 2020
@brycelelbach brycelelbach added B3 - addition Bucket 3 as described by P0592: material that is not mentioned in P0592 ready-for-library-evolution-mailing-list-review This paper needs to be discussed on the Library Evolution mailing list labels Nov 30, 2020
@jensmaurer jensmaurer modified the milestones: 2020-telecon, 2021-telecon Dec 28, 2020
@cor3ntin cor3ntin added the scheduled-for-library-evolution This paper has been scheduled for one of the groups: LEWG, LEWG Incubator, or a Mailing List review label Feb 22, 2021
@wg21bot
Copy link
Collaborator Author

wg21bot commented Apr 25, 2021

P2255R1 A type trait to detect reference binding to temporary (Tim Song)

@jfbastien
Copy link
Collaborator

jfbastien commented May 12, 2021

EWG saw the paper in today's telecon.

Send P2255r1 to LEWG, with a recommendation to send it to Electronic Polling with the currently specified semantics. Only do so if LEWG agrees that the type traits as specified are useful and usable for pair, tuple, and function.

SF F N A SA
3 9 0 0 0

@jfbastien jfbastien removed the EWG Evolution label May 12, 2021
@inbal2l
Copy link
Collaborator

inbal2l commented May 20, 2021

A short summary of the comments from LEWG's Mailing list:

  • std::tuple<const std::string&> x("hello"); is ill-formed, but the usage f(tuple<const string&>("hello")) seems desirable
    Author: I lean toward defining the ctor as deleted, so that the example is still rejected. tuple<const string&>("hello"s) (or the equivalent std::string("hello")) remains available.
  • Worried about false positives the trait may produce.
    Author: It produces an inevitably-dangling reference with tuple as specified today. Whether we go on to produce a likely-dangling reference or just reject the code outright seems like a somewhat separate decision to me; either way, it doesn't affect any existing valid C++20 code.

R1 is ready for LEWG Telecon.

@inbal2l inbal2l removed the ready-for-library-evolution-mailing-list-review This paper needs to be discussed on the Library Evolution mailing list label May 20, 2021
@brycelelbach brycelelbach added ready-for-library-evolution-meeting-review This paper needs to be discussed at a Library Evolution meeting and removed scheduled-for-library-evolution This paper has been scheduled for one of the groups: LEWG, LEWG Incubator, or a Mailing List review labels May 23, 2021
@brycelelbach brycelelbach added IS Ship vehicle: IS size - small paper size estimate labels Aug 1, 2021
@brycelelbach brycelelbach added scheduled-for-library-evolution This paper has been scheduled for one of the groups: LEWG, LEWG Incubator, or a Mailing List review C++23 Targeted at C++23 labels Sep 15, 2021
@wg21bot
Copy link
Collaborator Author

wg21bot commented Oct 26, 2021

P2255R2 A type trait to detect reference binding to temporary (Tim Song)

@inbal2l
Copy link
Collaborator

inbal2l commented Oct 27, 2021

2021-10-26 Library Evolution Telecon

P2255R2: A type trait to detect reference binding to temporary

2021-10-26 Library Evolution Telecon Minutes

Chair: Inbal Levi

Champion: Tim Song

Minute Taker: Ben Craig

Polls

POLL: Forward P2255R2: A type trait to detect reference binding to temporary to LWG for C++23 (to be confirmed with electronic poll) with priority 2.

Strongly Favor Weakly Favor Neutral Weakly Against Strongly Against
1 3 4 1 0

Attendance: 15

# of Authors: 1

Author Position: SF

Outcome: No consensus

Outcome

The author was requested to start a thread on the mailing list on this topic, and if supported, go back to LEWG for polling.

@inbal2l inbal2l removed the scheduled-for-library-evolution This paper has been scheduled for one of the groups: LEWG, LEWG Incubator, or a Mailing List review label Oct 27, 2021
@brycelelbach brycelelbach added expedited-library-evolution-electronic-poll Papers that were reviewed on the mailing list and then advanced directly to electronic polling. ready-for-library-evolution-electronic-poll This paper needs to undergo a Library Evolution electronic poll and removed ready-for-library-evolution-meeting-review This paper needs to be discussed at a Library Evolution meeting labels Oct 31, 2021
@brycelelbach
Copy link

brycelelbach commented Oct 31, 2021

@brycelelbach brycelelbach added the scheduled-for-library-evolution This paper has been scheduled for one of the groups: LEWG, LEWG Incubator, or a Mailing List review label Nov 9, 2021
@cor3ntin cor3ntin added LWG Library and removed ready-for-library-evolution-electronic-poll This paper needs to undergo a Library Evolution electronic poll labels Dec 6, 2021
@cor3ntin cor3ntin removed scheduled-for-library-evolution This paper has been scheduled for one of the groups: LEWG, LEWG Incubator, or a Mailing List review LEWG Library Evolution expedited-library-evolution-electronic-poll Papers that were reviewed on the mailing list and then advanced directly to electronic polling. labels Dec 6, 2021
@cor3ntin
Copy link

cor3ntin commented Dec 6, 2021

2021-11 Library Evolution Electronic Poll Outcomes

Send [P2255R2] (A Type Trait To Detect Reference Binding To Temporary) to Library Working Group for C++23, classified as an addition ([P0592R4] bucket 3 item).

SF F N A SA
14 12 1 0 0

Strong consensus in favor

@jensmaurer jensmaurer modified the milestones: 2021-telecon, 2022-telecon Jan 1, 2022
@JeffGarland
Copy link
Member

LWG reviewed and approved

poll: P2255r2 into the C++23 working draft?

F A N
10 0 0

@JeffGarland JeffGarland added tentatively-ready-for-plenary Reviewed between meetings; ready for a vote. and removed B3 - addition Bucket 3 as described by P0592: material that is not mentioned in P0592 labels Jan 29, 2022
@cor3ntin cor3ntin added the plenary-approved Papers approved for inclusion in their target vehicle by plenary vote. label Feb 7, 2022
@jensmaurer
Copy link
Member

Approved by WG21 plenary 2022-02-07

@cor3ntin cor3ntin removed the tentatively-ready-for-plenary Reviewed between meetings; ready for a vote. label Feb 21, 2022
@brycelelbach brycelelbach added the expedited-library-evolution-electronic-poll Papers that were reviewed on the mailing list and then advanced directly to electronic polling. label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++23 Targeted at C++23 expedited-library-evolution-electronic-poll Papers that were reviewed on the mailing list and then advanced directly to electronic polling. IS Ship vehicle: IS LWG Library plenary-approved Papers approved for inclusion in their target vehicle by plenary vote. size - small paper size estimate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants