Merge pull request #57 from zckevin/patch-1

Fix typo.
This commit is contained in:
Zihan Chen 2020-05-24 10:21:41 -07:00 committed by GitHub
commit e5e89346b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,7 +442,7 @@ int result = Add(a, b);
error C2782: 'T _1_2_2::Add(T,T)' : template parameter 'T' is ambiguous
```
好吧,"ambigous",这个提示再明确不过了。
好吧,"ambiguous",这个提示再明确不过了。
不过,只要你别逼得编译器精神分裂的话,编译器其实是非常聪明的,它可以从很多的蛛丝马迹中,猜测到你真正的意图,有如下面的例子: