編譯器錯誤 C2572
'class::member' : 預設參數重複定義 : 參數 param
不能重新定義預設參數。 如果您需要另一個參數值,則不應定義預設參數。
下列範例會產生 C2572:
// C2572.cpp
// compile with: /c
void f(int i = 1); // function declaration
// function definition
void f(int i = 1) {} // C2572
// try the following line instead
// void f(int i) {}