-
Notifications
You must be signed in to change notification settings - Fork 731
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
Possible error in Capture List and Classes #6
Comments
And perhaps another little mistake in struct A {int x; int y;};
A array[10] = { {1,2}, {5,6}, {7,1} };
for (auto [x1, y1] : array) cout<<x1<<","<<y1<<" "; //print:1,2 5,6 7,1 I suppose it is
|
And maybe another one in static_cast<B&>(a1).f(); // print "A" downcasting It actually prints "B", not "A". I suppose you meant: static_cast<B&>(a).f(); // print "A" downcasting |
Hi @lopezzot, many thanks for pointing out all these issues. I will fix them soon. |
You are welcome and thanks for this excellent course. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear Federico,
perhaps an error in
05.Basic_Concepts_IV.pdf
slide 33.it returns 1, not 2.
For instance, the following prints 1 with
-std=c++20
:The text was updated successfully, but these errors were encountered: