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

[expr.unary.op] remove redundant value category wording #6819

Merged
merged 1 commit into from Apr 16, 2024

Conversation

Eisenwave
Copy link
Contributor

@Eisenwave Eisenwave commented Feb 22, 2024

draft/source/expressions.tex

Lines 4598 to 4606 in 8c8e05d

\pnum
Each of the following unary operators yields a prvalue.
\pnum
\indextext{name!address of cv-qualified}%
\indextext{expression!pointer-to-member constant}%
The operand of the unary \tcode{\&} operator
shall be an lvalue of some type \tcode{T}.
The result is a prvalue.

The paragraph above already states that all unary operators yield a prvalue. We can remove this redundant wording from the & operator.

@jensmaurer
Copy link
Member

The general rule is literally in the paragraph preceding the struck text. @tkoeppe , this feels safe.

@tkoeppe
Copy link
Contributor

tkoeppe commented Apr 16, 2024

Sure, thanks!

@tkoeppe tkoeppe merged commit fbf3d76 into cplusplus:main Apr 16, 2024
2 checks passed
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