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 20, 2019
1 parent b5aa023 commit dfe8dbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ch16/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ g(ci); //type: const int call template 3 T: const int instantiation: void
g(p2); //type: const int * call template 4 T: const int instantiation: void g(const int *)
f(42); //type: int(rvalue) call template 1 T: int instantiation: void f(int)
f(p); //type: int * call template 1 T: int * instantiation: void f(int *)
# f(int *) is an exact match for p(int *) while f(const int *) has an conversion from int * to const int *.
f(ci); //type: const int call template 1 T: const int instantiation: void f(const int)
f(p2); //type: const int * call template 2 T:int instantiation: void f(const int *)
```

0 comments on commit dfe8dbe

Please sign in to comment.