Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhqu1148980644 authored Mar 18, 2019
1 parent 292898a commit 33851d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch16/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ More safer solution: <[Better `sum`](ex16_41_sum.cpp)>
> (c) g(i * ci);
> ```
- (a) T: `int&` val: `int& &&` -> `int &`
- (a) T: `int&` val: `int& &&` -> `int &`
- (b) T: `const int&` val: `const int& &&` -> `const int &`
- (c) T: `int` val: `int &&`
- (c) T: `int` val: `int &&`
> When we pass an lvalue `int` to a function parameter that is an rvalue reference to a template type parameter `T&&`, the compiler deduces the template type parameter as the argument’s lvalue reference type `int &`.
Expand Down

0 comments on commit 33851d2

Please sign in to comment.