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

P2393R1 Cleaning Up Integer-Class Types #2541

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

CaseyCarter
Copy link
Member

@CaseyCarter CaseyCarter commented Feb 8, 2022

Our integer-class types (_Signed128 and _Unsigned128) were implemented to the revised wording, so they require no changes.

We do need the subrange constructor change.

We don't need the drop_view, take_view, views::counted, and views::take changes. We already implement them or something functionally equivalent.

Update <yvals_core.h> to indicate that P2393R1 is implemented in C++20 (and later) modes.

Drive-by: Indicate that P1522 is now fully implemented in <yvals_core.h>.

Fixes #2254

There's no test coverage here because it just seems silly to write two ranges with custom iterators just to verify the presence of one static_cast. As always, reviewers - yell at me if you disagree.

Our integer-class types (`_Signed128` and `_Unsigned128`) were implemented to the revised wording, so they require no changes.

We _do_ need the `subrange` constructor change.

We don't need the `drop_view`, `take_view`, `views::counted`, and `views::take` changes. We already implement them or something functionally equivalent.

Update `<yvals_core.h>` to indicate that P2393R1 is implemented in C++20 (and later) modes.

Drive-by: Indicate that P1522 is now fully implemented in `<yvals_core.h>`.

Fixes microsoft#2254
@CaseyCarter CaseyCarter added ranges C++20/23 ranges cxx23 C++23 feature labels Feb 8, 2022
@CaseyCarter CaseyCarter requested a review from a team as a code owner February 8, 2022 03:39
@AlexGuteniev
Copy link
Contributor

Drive-by: Indicate that P1522 is now fully implemented in <yvals_core.h>.

Please try to drive this into 2019 as well?

@StephanTLavavej StephanTLavavej self-assigned this Feb 11, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo. Requesting or pushing changes is totally fine, but please notify me if that happens.

@StephanTLavavej StephanTLavavej merged commit 624b2ae into microsoft:main Feb 12, 2022
@StephanTLavavej
Copy link
Member

Thanks for cleaning up these fundamental building blocks of arithmetic! 🧹 ➕ 🔢

@CaseyCarter CaseyCarter deleted the p2391 branch February 12, 2022 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx23 C++23 feature ranges C++20/23 ranges
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P2393R1 Cleaning Up Integer-Class Types
4 participants