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

[basic.compound] Update introduction #7362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eisenwave
Copy link
Contributor

This PR cleans up a few wording discrepancies in the introduction to compound types:

  1. We don't like to say that "functions return references". Any such case would mean that the function is declared with reference return type, but the reference would be transformed into an lvalue or xvalue designating the object upon the call. If we just say "a result", we keep it vague and correct.

  2. The list of what classes contain tries to be exhaustive without much benefit. We can just say that classes contain class members, which does not miss many things not listed here, such as static_assert, template, etc.

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.

Yeah. Intro stuff that nobody looks at to get normative guidance.

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.

2 participants