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

[ranges.syn] remove trailing -> see below return type from three `t… #5419

Merged
merged 1 commit into from May 4, 2022

Conversation

CaseyCarter
Copy link
Contributor

…o` overloads

Since there is actually no return type specification to see below in [range.utility.conv].

…o` overloads

Since there is actually no return type specification to see below in [range.utility.conv].
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.

I think an "auto" return type in the synopsis is a clear indicator this is a deduced return type. We need to be extra careful that the detailed specification actually allows deduction of the return type, but I think we get that here.

@jensmaurer
Copy link
Member

@jwakely , what do you think?

@jensmaurer
Copy link
Member

@jwakely, ping.

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to use -> decltype(see below) in the synopsis we should also do it in the detailed descriptions, and we don't do it there. This makes it consistent (and I don't think it would be an improvement to be consistent in the other direction by adding the trailing return type to the detailed descriptions).

@jensmaurer jensmaurer merged commit 81e506d into cplusplus:main May 4, 2022
@CaseyCarter CaseyCarter deleted the to-synopsis branch May 4, 2022 20:46
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.

None yet

3 participants