Merge pull request #59 from ecer/patch-1

Update item1.md
This commit is contained in:
kelthuzadx 2020-11-25 11:13:59 +08:00 committed by GitHub
commit f1654d362c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ template<typename T>
void f2(T & param); //传引用
f1(someFunc); //param被推导为指向函数的指针类型是void(*)(int, double)
f2(someFunc); //param被推导为指向函数的引用类型为void(&)(int, bouel)
f2(someFunc); //param被推导为指向函数的引用类型为void(&)(int, double)
````
这个实际上没有什么不同,但是如果你知道数组退化为指针,你也会知道函数退化为指针。