摘要:
1、模板函数中,类型参数必须精确匹配,不支持自动(隐式)类型转换。When we call a function template such as max() for some arguments, the template parameters are determined by the arguments we pass. If we pass two ints to the parameter type T const &, the C++ compiler must conclude that T must be int. Note that no automatic type 阅读全文