编译器错误 C2770
“template”的显式模板或泛型参数无效
具有显式模板或泛型参数的函数模板候选项导致不允许的函数类型。
以下示例生成 C2770:
// C2770.cpp
#include <stdio.h>
template <class T>
int f(typename T::B*); // expects type with member B
struct Err {};
int main() {
f<int>(0); // C2770 int has no B
// try the following line instead
f<OK>(0);
}