Skip to content

Commit

Permalink
Merge pull request Mooophy#375 from chihyang/master
Browse files Browse the repository at this point in the history
Correct the answer to exercise 16.44
  • Loading branch information
Mooophy committed Dec 4, 2015
2 parents 35bdd23 + 9131efe commit 7a10125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch16/ex16.42.43.44.45.46/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// ^^^^^^^^
// g(i) -- T is deduced as int , val : const int&
// g(ci) -- T is deduced as int , val : const int&
// g(i * ci) -- T is deduced as int&&, val : const int&& & collapse to const int&
// g(i * ci) -- T is deduced as int , val : const int&(see example on page 687)
//
// Exercise 16.45:
// Given the following template, explain what happens if we call g on a literal value
Expand Down

0 comments on commit 7a10125

Please sign in to comment.