컴파일러 오류 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);
}