编译器错误 C3208

“function”: 类模板“class”的模板参数列表与模板 template 参数“parameter”的模板参数列表不匹配

模板 template 参数的模板参数数量与提供的类模板不同。

下面的示例生成 C3208:

// C3208.cpp
template <template <class T> class TT >
int f();

template <class T1, class T2>
struct S;

template <class T1>
struct R;

int i = f<S>();   // C3208
// try the following line instead
// int i = f<R>();