编译器错误 C3747

缺少默认类型参数:参数参数

没有默认值的参数不能在参数列表中遵循具有默认值的泛型或模板参数。

以下示例生成 C3747:

// C3747.cpp
template <class T1 = int, class T2>   // C3747
struct MyStruct {};

可能的解决方法:

// C3747b.cpp
// compile with: /c
template <class T1, class T2 = int>
struct MyStruct {};