編譯器錯誤 C2770
'template' 的明確template_or_generic自變數無效
具有明確範本或泛型自變數的函式範本候選專案會導致不允許的函式類型。
下列範例會產生 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);
}