-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ex2.31 #163
Comments
This is assignment rather than binding. |
Same question, the example in the book says int &r = ci (const int ci = 42), is illegal, which is same as "r1 = v2", so I think "r1 = v2" should be illegal. |
At first, I thought it's illegal. |
r1 is a int&, while v2 is a const int.
Why it is legel?
The text was updated successfully, but these errors were encountered: