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 expedited-library-evolution-electronic-poll IS LWG plenary-approved small
Milestone

Comments

@wg21bot
Copy link
Collaborator

@wg21bot wg21bot commented Nov 23, 2020

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

@wg21bot wg21bot added EWG LEWG labels Nov 23, 2020
@wg21bot wg21bot added this to the 2020-telecon milestone Nov 23, 2020
@brycelelbach brycelelbach added B3 - Addition ready-for-library-evolution-mailing-list-review labels Nov 30, 2020
@jensmaurer jensmaurer modified the milestones: 2020-telecon, 2021-telecon Dec 28, 2020
@cor3ntin cor3ntin added the scheduled-for-library-evolution label Feb 22, 2021
@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Apr 25, 2021

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

@jfbastien
Copy link
Collaborator

@jfbastien 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 label May 12, 2021
@inbal2l
Copy link
Collaborator

@inbal2l 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 label May 20, 2021
@brycelelbach brycelelbach added ready-for-library-evolution-meeting-review and removed scheduled-for-library-evolution labels May 23, 2021
@brycelelbach brycelelbach added IS small labels Aug 1, 2021
@brycelelbach brycelelbach added scheduled-for-library-evolution C++23 labels Sep 15, 2021
@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Oct 26, 2021

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

@inbal2l
Copy link
Collaborator

@inbal2l 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 label Oct 27, 2021
@brycelelbach brycelelbach added expedited-library-evolution-electronic-poll ready-for-library-evolution-electronic-poll and removed ready-for-library-evolution-meeting-review labels Oct 31, 2021
@brycelelbach
Copy link
Collaborator

@brycelelbach brycelelbach commented Oct 31, 2021

@brycelelbach brycelelbach added the scheduled-for-library-evolution label Nov 9, 2021
@cor3ntin cor3ntin removed scheduled-for-library-evolution LEWG expedited-library-evolution-electronic-poll labels Dec 6, 2021
@cor3ntin
Copy link
Collaborator

@cor3ntin 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

@JeffGarland JeffGarland commented Jan 29, 2022

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 and removed B3 - Addition labels Jan 29, 2022
@cor3ntin cor3ntin added the plenary-approved label Feb 7, 2022
@jensmaurer
Copy link
Member

@jensmaurer jensmaurer commented Feb 11, 2022

Approved by WG21 plenary 2022-02-07

@cor3ntin cor3ntin removed the tentatively-ready-for-plenary label Feb 21, 2022
@brycelelbach brycelelbach added the expedited-library-evolution-electronic-poll 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 expedited-library-evolution-electronic-poll IS LWG plenary-approved small
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants