-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement P2328R1 join_view
Should Join All Views Of Ranges
#2038
Conversation
Derp, I did not update the |
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 am still baffled why
array<string, 5>{{{}, "Hello ", {}, "World!", {}}} | views::join
was not fixed 😿
I see nothing to fix, other than perhaps making array
a view
?
I also note that the paper title is incorrectly transcribed.
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com> Co-authored-by: Tim Song <t.canens.cpp@gmail.com>
join_view
Should Join All Views Of Ranges
I'm tempted to veto the Stephan-casing of the title; "Views of Ranges" doesn't have the same meaning as the intended " |
@miscco FYI I pushed a change that removed all of the |
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.
Looks good to me, after @timsong-cpp's comments are addressed.
@timsong-cpp I think I managed to get it working as you suggested. |
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.
Looks good, I'll push a trivial change to take (int)
instead of (const int)
.
FYI @CaseyCarter, @miscco and I pushed changes after you approved. |
Mirrored to internal MSVC-PR-343332. Please notify me if any further changes are pushed to this branch. |
@miscco @CaseyCarter This failed in the internal test harness so I had to drop the |
Thanks for joining this project! 😹 🎉 🚀 |
Fixes #1985
I am still baffled why
array<string, 5>{{{}, "Hello ", {}, "World!", {}}} | views::join
was not fixed 😿