Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/cpp/lvalues-and-rvalues-visual-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ int main()
// Correct usage: the dereferenced pointer is an lvalue.
*p = i;

const int ci = 7;
// Incorrect usage: the variable is a non-modifiable lvalue (C3892).
ci = 9; // C3892

// Correct usage: the conditional operator returns an lvalue.
((i < 3) ? i : j) = 7;

// Incorrect usage: the constant ci is a non-modifiable lvalue (C3892).
const int ci = 7;
ci = 9; // C3892
}
```

Expand Down