Cpp_Primer_Answers
Cpp_Primer_Answers copied to clipboard
练习题16.18中e应当是合法
书中前面提到过隐藏的情况,但是没说非法,并且我写了个代码测试也是通过的
#include <iostream>
using namespace std;
typedef char Ctype;
template <typename Ctype >
Ctype f(Ctype a)
{
return a;
}
int main() {
int a = 1;
cout << f(a);
return 0;
}