Skip to content

book: clarify value category is a property of expressions#311

Merged
changkun merged 1 commit into
masterfrom
fix/275-value-category
Jun 7, 2026
Merged

book: clarify value category is a property of expressions#311
changkun merged 1 commit into
masterfrom
fix/275-value-category

Conversation

@changkun

@changkun changkun commented Jun 7, 2026

Copy link
Copy Markdown
Owner

The lvalue/rvalue section defined value categories in terms of objects, obscuring that value category is a property of expressions (each expression is exactly one of lvalue/prvalue/xvalue). Add a clarifying note citing cppreference while keeping the intuitive descriptions as labeled approximations. Also fix a pvalueprvalue typo.

Fixes #275

The lvalue/rvalue section defined value categories in terms of objects,
which obscures the fundamental point that value category is a property
of expressions (each expression is exactly one of lvalue/prvalue/xvalue).
Add a clarifying note citing cppreference while keeping the intuitive
descriptions as labeled approximations. Also fix pvalue -> prvalue typo.

Fixes #275
@changkun changkun merged commit 728c961 into master Jun 7, 2026
@changkun changkun deleted the fix/275-value-category branch June 7, 2026 14:31
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.

3.3 右值引用中的错误描述

1 participant