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

Exercise 2.31 #43

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion ch02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ Exercise 2.31
> Given the declarations in the previous exercise determine whether the following assignments are legal. Explain how the top-level or low-level `const` applies in each case.
>
> ```cpp
> r1 = v2; // legal, top-level const in v2 is ignored.
> r1 = v2; // illegal, we cannot bind reference of type "int &" to initializer of type "const int".
> p1 = p2; // illegal, p2 has a low-level const but p1 doesn't.
> p2 = p1; // legal, we can convert int* to const int*.
> p1 = p3; // illegal, p3 has a low-level const but p1 doesn't.
Expand Down