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
P0870 A proposal for a type trait to detect narrowing conversions #724
Comments
Forward D0870R2 to EWG, as we believe that EWGI cannot provide any further useful feedback to the author.
|
EWG Prague Friday afternoon: D0870R2 A proposal for a type trait to detect narrowing conversions Send to SG6 Numerics for input.
We have no concerns with this, only send this paper back to us if SG6 or LEWG / LWG / CWG ask.
|
P0870R1 Chair: Billy Baker Champion: Marc Mutz Minute Taker: David Olsen Start Review: 2020-02-11 08:39 You mentioned that there are proposed changes to what are narrowing conversions in flight? Do we expect the definition to change again in the future? Does EWG(I) need to see this? Start Polling: 9:14 POLL: We should promise more committee time to pursuing P0870, knowing that our time is scarce and this will leave less time for other work.
Attendance: 20 # of Authors: 1 Author Position: SF End: 9:16 CONSENSUS: Bring a revision of P0870R1 (
|
P0870R2 A proposal for a type trait to detect narrowing conversions (Giuseppe D'Angelo) |
P0870R3 A proposal for a type trait to detect narrowing conversions (Giuseppe D'Angelo) |
2022-09-13 Joint Library Evolution and Numerics TeleconP0870R4: Type trait to detect narrowing conversions 2022-09-13 Joint Library Evolution and Numerics Telecon Minutes Chair: Bryce Adelstein Lelbach Minute Taker: Mark Hoemmen Champion: Giuseppe D'Angelo Start: 2022-09-13 11:05 Eastern Does this paper have:
Should future things like Changing A Related: P2509R0 (Type trait to detect value-preserving conversions). POLL: Send P0870R4 (Type trait to detect narrowing conversions) to Library for C++26 classified as B3 - addition, to be confirmed with a Library Evolution electronic poll.
Attendance: 18 # of Authors: 1 Author Position: SF Outcome: Strong consensus in favor. End: 11:38 SummaryThis is a proposal for a new trait to detect narrowing conversions. As narrowing conversions themselves are not extensible to user-defined arithmetic types, the author's intent is for this proposal to just cover builtin types. There was some discussion about how we might use this trait within the Standard Library, both for existing features and future features. Some proposed that we could change existing types, like We also briefly talked about a related proposal, P2509 (Type trait to detect value-preserving conversions). Library Evolution feels this feature is useful and we believe the proposal is well-baked. Next StepsTake a Library Evolution electronic poll to send P0870R4 (Type trait to detect narrowing conversions) to Library for C++26 classified as B3 - addition. |
2022-10 Library Evolution Electronic Poll OutcomesSend [P0870R4] is_convertible_without_narrowing to Library Working Group for C++26, classified as an addition ([P0592R4] bucket 3 item).
Outcome: Strong consensus in favor. |
@cor3ntin I believe the above is a C&P mistake? I've got 9/6/1/0/0 (the outcomes paper isn't published yet, so I can't check against an authoritative reference...) |
Indeed, thanks for noticing. |
P0870R5 A proposal for a type trait to detect narrowing conversions (Giuseppe D'Angelo) |
Hi @brycelelbach @cor3ntin ; during the review of this paper in Issaquah it's been requested whether LEWG could confirm a design choice. To this end, I've uploaded R5. It does not change any design / behavior from R4, but it adds a paragraph that elaborates on the design choice mentioned above: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0870r5.html#ch5.9 I guess this paper should go back to LWG only if LEWG can confirm that the choice was the intended one. |
This paper is now in the custody of Library Evolution. |
P0870R1 A proposal for a type trait to detect narrowing conversions (Giuseppe D'Angelo)
The text was updated successfully, but these errors were encountered: