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

[range.join.view] remove duplicative condition in end() const #4957

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

timsong-cpp
Copy link
Contributor

This function is constrained on is_reference_v<range_reference_t<const V>> already so checking it again in the if constexpr has no effect.

This function is constrained on `is_reference_v<range_reference_t<const V>>` already so checking it again in the `if constexpr` has no effect.
Copy link
Member

@jensmaurer jensmaurer left a 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.

@jwakely , @CaseyCarter , a second opinion, please.

CaseyCarter added a commit to CaseyCarter/STL that referenced this pull request Oct 5, 2021
Drive-by: Drop extraneous `if constexpr` condition in `join_view::end` as suggested by cplusplus/draft#4957.
CaseyCarter added a commit to CaseyCarter/STL that referenced this pull request Oct 5, 2021
Drive-by: Drop extraneous `if constexpr` condition in `join_view::end` as suggested by cplusplus/draft#4957.

Fixes microsoft#2240
@tkoeppe tkoeppe merged commit 7d88653 into cplusplus:main Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants