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
P1998 Simple Facility for Lossless Integer Conversion #720
Comments
P1998R1 Simple Facility for Lossless Integer Conversion (Ryan McDougall) |
Reviewed by SG6 Monday in Prague. We generally approve. The "narrow" naming caused some confusion about the intent and limitations of the function (e.g., can it be used to perform a strictly widening conversion?). |
P1998R0 Chair: Billy Baker Champion: Ryan McDougall Minute Taker: David Olsen Start Review: 2020-02-11 9:19 Implementation experience:
Usage experience:
Prior art:
It seems novel that this proposal suggests that the
Explore other prior art, such as Drop the literals? Start Polling: 9:40 POLL: We should promise more committee time to pursuing P1998, knowing that our time is scarce and this will leave less time for other work.
Attendance: 22 # of Authors: 1 Author Position: SF POLL: For a lossless integer conversion, a solution that throws is desired (i.e. std::narrow_cast).
Attendance: 22 # of Authors: 1 Author Position: Abstained The consensus is that a solution that throws is desired. POLL: For a lossless integer conversion, a solution that aborts the program in some manner is desired (i.e. std::narrow).
Attendance: 22 # of Authors: 1 Author Position: SF SA: Should not set precedent before contracts show up N: Just the precondition would have been fine, but uncertain when contracts are not here A: You can do this with No consensus to provide a solution that aborts a program. POLL: For a lossless integer conversion, a solution that allows invoking a Callable is desired (i.e. std::narrow_or).
Attendance: 22 # of Authors: 1 Author Position: SF The consensus is that a solution that allows invoking a Callable is desired. POLL: For a lossless integer conversion, a solution that provides literal suffixes is desired.
Attendance: 22 # of Authors: 1 Author Position: Not recorded SA: I don't think it is fundamental to the proposal (could be added later) WA: Teaching people to use both is harder than teaching a single context (i.e. the throwing one) No consensus to provide literal suffixes. End: 09:59 Consensus: LEWGI sends P1998R1 (Simple Facility for Lossless Integer Conversion), with the guidance below, to LEWG for the Numerics TS.
|
P1998R0 Simple Facility for Lossless Integer Conversion (Ryan McDougall)
The text was updated successfully, but these errors were encountered: