Skip to content

P2988 R12 std::optional<T&> #1661

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

Open
wg21bot opened this issue Oct 16, 2023 · 19 comments
Open

P2988 R12 std::optional<T&> #1661

wg21bot opened this issue Oct 16, 2023 · 19 comments
Labels
B3 - addition Bucket 3 as described by P0592: material that is not mentioned in P0592 C++26 Targeted at C++26 IS Ship vehicle: IS LWG Library size - medium paper size estimate
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Oct 16, 2023

P2988R0 std::optional<T&> (Steve Downey)

@wg21bot wg21bot added the LEWG Library Evolution label Oct 16, 2023
@wg21bot wg21bot added this to the 2023-telecon milestone Oct 16, 2023
@cor3ntin cor3ntin changed the title P2988 R0 std::optional&lt;T&amp;&gt; P2988 R0 std::optional<T&> Oct 16, 2023
@inbal2l inbal2l added IS Ship vehicle: IS C++26 Targeted at C++26 B3 - addition Bucket 3 as described by P0592: material that is not mentioned in P0592 ready-for-library-evolution-meeting-review This paper needs to be discussed at a Library Evolution meeting size - medium paper size estimate labels Oct 16, 2023
@inbal2l inbal2l changed the title P2988 R0 std::optional<T&> P2988 R0 std::optional<T&> (A) Oct 18, 2023
@inbal2l inbal2l 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 Oct 19, 2023
@inbal2l inbal2l changed the title P2988 R0 std::optional<T&> (A) P2988 R0 std::optional<T&> Oct 19, 2023
@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 Nov 20, 2023
@inbal2l inbal2l modified the milestones: 2023-telecon, 2024-telecon Jan 5, 2024
@inbal2l inbal2l added needs-revision Paper needs changes before it can proceed and removed ready-for-library-evolution-meeting-review This paper needs to be discussed at a Library Evolution meeting labels Jan 5, 2024
@inbal2l
Copy link
Collaborator

inbal2l commented Jan 6, 2024

2024-01-02 Library Evolution Telecon

P2988R0: std::optional<T&>

2024-01-02 Library Evolution Telecon Minutes

Champion: Steve Downey

Chair: Billy Baker

Minute Taker: Ben Craig

Summary

References mentioned during the discussion:
references mentioned above:

  1. https://thephd.dev/to-bind-and-loose-a-reference-optional
  2. https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2070r0.pdf
  3. https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1175r0.html

The author will explore and add information on:

  1. Explore compiler failure vs. compiler error for assignment op
  2. Add references to analysis of the discussion of “Assign-through” optional direction, and the “Rebind” optional direction (https://wg21.link/p1683r0)
  3. Consider a separate name then std::optional to the "ref" version?
  4. Explore named function for separating between the cases above.
  5. Add a feature test macro.
  6. Explore and add examples for "const" behaviour.

No polls were taken.

Next Steps

The room was generally supportive of the proposal but would like the author to come back with more rationale for the (already settled) design decisions and further exploration of the open topics mentioned above.
Ville and Barry volunteered to help the author.
We will see the paper again in LEWG.

@wg21bot
Copy link
Collaborator Author

wg21bot commented Jan 17, 2024

P2988R1 std::optional<T&> (Steve Downey, Peter Sommerlad)

@wg21bot wg21bot removed the needs-revision Paper needs changes before it can proceed label Jan 17, 2024
@wg21bot wg21bot changed the title P2988 R0 std::optional<T&> P2988 R1 std::optional Jan 17, 2024
@wg21bot wg21bot changed the title P2988 R1 std::optional P2988 R1 std::optional&lt;T&&gt; Jan 17, 2024
@inbal2l inbal2l added the ready-for-library-evolution-meeting-review This paper needs to be discussed at a Library Evolution meeting label Jan 17, 2024
@inbal2l inbal2l changed the title P2988 R1 std::optional&lt;T&&gt; P2988 R1 std::optional<&T> Jan 17, 2024
@inbal2l inbal2l changed the title P2988 R1 std::optional<&T> P2988 R1 std::optional<T&> Jan 17, 2024
@inbal2l inbal2l 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 Jan 18, 2024
@wg21bot
Copy link
Collaborator Author

wg21bot commented Feb 16, 2024

P2988R3 std::optional<T&> (Steve Downey, Peter Sommerlad)

@wg21bot wg21bot changed the title P2988 R1 std::optional<T&> P2988 R3 std::optional&lt;T&amp;&gt; Feb 16, 2024
@cor3ntin cor3ntin changed the title P2988 R3 std::optional&lt;T&amp;&gt; P2988 R3 std::optional<T&> Feb 16, 2024
@inbal2l inbal2l 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 29, 2024
@jensmaurer jensmaurer modified the milestones: 2024-telecon, 2025-telecon Dec 18, 2024
@wg21bot
Copy link
Collaborator Author

wg21bot commented Jan 14, 2025

P2988R9 std::optional<T&> (Steve Downey, Peter Sommerlad)

@wg21bot wg21bot changed the title P2988 R8 std::optional<T&> P2988 R9 std::optional&lt;T&amp;&gt; Jan 14, 2025
@jwakely jwakely changed the title P2988 R9 std::optional&lt;T&amp;&gt; P2988 R9 std::optional<T&> Jan 14, 2025
@bstamour
Copy link
Collaborator

bstamour commented Feb 14, 2025

LWG saw this on Friday in Hagenberg.

@bstamour bstamour moved this to In Progress in 2025 Hagenberg LWG Schedule Feb 14, 2025
@inbal2l
Copy link
Collaborator

inbal2l commented Feb 27, 2025

(Out of order)

2025-02-10 Library Evolution Hagenberg Meeting

P2988R9: std::optional<T&>

2025-02-10 Library Evolution Hagenberg Minutes

Champion: Steve Downey
Chair: Inbal Levi / Fabio Fracassi
Minute Taker: Eddie

Summary

POLL: Forward P2988R9 to LWG for C++26.

SF F N A SA
12 10 2 0 0

Attendance: 30 (IP) + 8 (R)
Author's Position: SF
Outcome: Strong consensus in favor

Next Steps

No changes requested, LEWG approved the fixes for T&& (to avoid taking the object) and forwarded to LWG for C++26.

@inbal2l inbal2l added LWG Library lwg-pending LWG Chair needs to disposition and removed LEWG Library Evolution ready-for-library-evolution-meeting-review This paper needs to be discussed at a Library Evolution meeting scheduled-for-library-evolution This paper has been scheduled for one of the groups: LEWG, LEWG Incubator, or a Mailing List review labels Feb 27, 2025
@JeffGarland JeffGarland removed the lwg-pending LWG Chair needs to disposition label Mar 14, 2025
@wg21bot wg21bot changed the title P2988 R9 std::optional<T&> P2988 R9 std::optional&lt;T&amp;&gt; Mar 19, 2025
@wg21bot
Copy link
Collaborator Author

wg21bot commented Mar 19, 2025

P2988R10 std::optional<T&> (Steve Downey, Peter Sommerlad)

@wg21bot wg21bot changed the title P2988 R9 std::optional&lt;T&amp;&gt; P2988 R10 std::optional&lt;T&amp;&gt; Mar 19, 2025
@wg21bot
Copy link
Collaborator Author

wg21bot commented Mar 19, 2025

P2988R11 std::optional<T&> (Steve Downey, Peter Sommerlad)

@wg21bot wg21bot changed the title P2988 R10 std::optional&lt;T&amp;&gt; P2988 R11 std::optional&lt;T&amp;&gt; Mar 19, 2025
@jwakely jwakely changed the title P2988 R11 std::optional&lt;T&amp;&gt; P2988 R11 std::optional<T&> Mar 19, 2025
@bstamour
Copy link
Collaborator

bstamour commented Mar 28, 2025

LWG looked at R12 on 2025-03-28. Will see it again after more edits applied.

Meeting minutes: https://wiki.edg.com/bin/view/Wg21telecons2025/P2988-20250328

@bstamour
Copy link
Collaborator

bstamour commented Apr 4, 2025

LWG poll this on 2025-04-04

POLL: Put P2988R12 as checked by Tomasz and Ruslan into C++26.

F | A | N
11 | 0 | 0

Participants: 12

@wg21bot
Copy link
Collaborator Author

wg21bot commented Apr 17, 2025

P2988R12 std::optional<T&> (Steve Downey, Peter Sommerlad)

@wg21bot wg21bot changed the title P2988 R11 std::optional<T&> P2988 R12 std::optional&lt;T&amp;&gt; Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B3 - addition Bucket 3 as described by P0592: material that is not mentioned in P0592 C++26 Targeted at C++26 IS Ship vehicle: IS LWG Library size - medium paper size estimate
Projects
Status: In Progress
Status: No status
Development

No branches or pull requests

7 participants