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

Mistake in explanation of Ex.16.42 (c) #810

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ch16/ex16.42.43.44.45.46/main.cpp
Expand Up @@ -15,7 +15,7 @@
// (b) g(ci);
// since ci is lvaue, T is deduced as const int&, val is const int& && collapsing to const int&
// (c) g(i * ci);
// since i * ci is rvalue, T is deduced as int, val is int&& && colapsing to int&&
// since i * ci is rvalue, T is deduced as int, val is int&&
//
// Exercise 16.43:
// Using the function defined in the previous exercise, what would the template
Expand Down