'declaration' : 至少需要 value1 自變數 - 提供 value2
備註
具有變數參數清單的函式範本自變數太少。
範例
下列範例會產生 C2781:
// C2781.cpp
template<typename T>
void f(T, T, ...){}
int main() {
f(1); // C2781
// try the following line instead
f(1,1);
}
'declaration' : 至少需要 value1 自變數 - 提供 value2
具有變數參數清單的函式範本自變數太少。
下列範例會產生 C2781:
// C2781.cpp
template<typename T>
void f(T, T, ...){}
int main() {
f(1); // C2781
// try the following line instead
f(1,1);
}