-
Notifications
You must be signed in to change notification settings - Fork 1.6k
P0009R18 <mdspan>
#3972
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
P0009R18 <mdspan>
#3972
Conversation
* First cut of `mdspan`, known to be incomplete.
Merge `main` to `feature/mdspan2`
Co-authored-by: Matt Stephanson <[email protected]>
Merge `main` to `feature/mdspan2`
Merge `main` to `feature/mdspan2`
Merge `main` to `feature/mdspan2`
Merge `main` to `feature/mdspan2`
Merge `main` to `feature/mdspan2`
Merge `main` to `feature/mdspan2`, include `<limits>`
Merge `main` to `feature/mdspan2`
Merge `main` to `feature/mdspan2`
Co-authored-by: Stephan T. Lavavej <[email protected]>
Co-authored-by: Stephan T. Lavavej <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've prepared fixes for these comments except for "_Fwd_prod_of_extents::_Calculate can potentially overflow when mdspan::size's precondition is satisfied", which I think deserves a bit of deep thinking and a followup issue. I'm going to PR a series of nicely fine-grained commits into STL's fork for ease of review.
β¦e the Standard mandates it
and fixes for the resulting failures.
... per the accessor policy requirements.
and avoid "detouring" through `operator[]` so we don't copy `OtherIndexType`s, which we aren't allowed to do. Fix test case that was expecting this bogosity.
π |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
Thanks again @JMazurkiewicz, @MattStephanson, @AlexGuteniev, @frederick-vs-ja, and @CaseyCarter! π π π |
Fixes #2909.
Thanks to @MattStephanson for starting this major feature branch with #3502, and to @JMazurkiewicz for finishing it with an incredible amount of work (#3534 #3535 #3560 #3564 #3580 #3586 #3593 #3603 #3615 #3616 #3632 #3672 #3673 #3674 #3682 #3688 #3689 #3690 #3693 #3694 #3698 #3701 #3702 #3715 #3749 #3767 #3786 #3821 #3825 #3829 #3847 #3852 wow!!!). Also thanks to @AlexGuteniev (#3944) and @frederick-vs-ja (#3638 #3901) for additional contributions. The feature branch also contains my own code review feedback (#3563 #3885 #3954 #3971), and merges from
mainby @CaseyCarter and myself to keep the branch active.This will merge the feature branch
feature/mdspan2intomain. It's a separate branch on my own fork so we can push additional last-minute commits if necessary, without going through multiple PRs. (Also, GitHub gets confused when directly merging between branches in the same fork.) Currently, this contains 3 additional commits:#endifcomment next to the feature-test macro in<yvals_core.h>for consistency with recent cleanups.mainto resolve a trivial merge conflict in<yvals_core.h>around__cpp_lib_mdspan, as the formerly-adjacent__cpp_lib_moduleshas moved to the C++20 section.Followed by a bunch of commits from @CaseyCarter's code review.
Per https://github.com/microsoft/STL/wiki/Files-To-Edit-When-Adding-Or-Removing-Files.