-
Notifications
You must be signed in to change notification settings - Fork 114
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
Cxx20standard #1768
Draft
lslusarczyk
wants to merge
18
commits into
uxlfoundation:distributed-ranges
Choose a base branch
from
lslusarczyk:cxx20standard
base: distributed-ranges
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Cxx20standard #1768
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
02a1e47
some changes in zip_view to use one from dpl
lslusarczyk 77ae6da
Merge remote-tracking branch 'origin/distributed-ranges' into cxx20
lslusarczyk 8b7c75e
trying to work with C++20 standard
lslusarczyk 683728c
changed CI to test 20 version
lslusarczyk f9cc864
[onedpl][tuple] + a fix for onedpl tuple
MikeDvorskiy 1c93b0c
Update tuple_impl.h
MikeDvorskiy 4ea8a31
Update tuple_impl.h
MikeDvorskiy b8b8f81
Revert struct __value_holder changes
MikeDvorskiy f440b62
Update segments_tools.hpp
MikeDvorskiy e375118
Update segments_tools.hpp
MikeDvorskiy c45505f
Update segments_tools.hpp - std::ranges::subrange(zip_v.begin(), zip_…
MikeDvorskiy 9d83dd8
Update utils_ranges.h; + begin/end for zip_view
MikeDvorskiy 2bc2593
Update tuple_impl.h; __value_holder change
MikeDvorskiy f0d20da
Update tuple_impl.h
MikeDvorskiy b070949
Update utils_ranges.h; make_zip_view fix
MikeDvorskiy f977c44
Update segments_tools.hpp; ++make_enumerate
MikeDvorskiy 3818aae
Update enumerate.cpp: removed test stdrng::views::enumerate
MikeDvorskiy 7a7cfb1
Update for_each.cpp; + oneapi::dpl::__ranges::make_zip_view
MikeDvorskiy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It turns out that we are using a functional approach for the sake of a functional approach...
I would suggest a little bit re-writing this loop is following way (w/o make_enumerate):
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.
@MikeDvorskiy , thanks for looking into this. Looks acceptable, although it is more lines of code.
Are other places with enumarate also easily changeable? Do you think it is more clean than having
make_enumerate' or does it fixes some problems which
make_enumerate` has (if it has)?Enumerate is quite common programming pattern making code shorter and more readable.
I don't object of changing all places where there is enumerate to some code like this if it is needed to add C++20 support. Please feel free to clone my change to your branch and continue adding any changes you think may be good for C++20 support.