Cpp_Primer_Answers icon indicating copy to clipboard operation
Cpp_Primer_Answers copied to clipboard

练习题16.18中e应当是合法

Open Withouthead opened this issue 4 years ago • 0 comments

书中前面提到过隐藏的情况,但是没说非法,并且我写了个代码测试也是通过的

#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;
}

Withouthead avatar Aug 31 '21 07:08 Withouthead