編譯器錯誤 C2264
'function' :函數定義或宣告中的錯誤;未呼叫函式
因為定義或宣告不正確,所以無法呼叫 函式。
下列範例會產生 C2264:
// C2264.cpp
struct C {
// Delete the following line to resolve.
operator int(int = 0){} // incorrect declaration
};
struct D {
operator int(){return 0;} // OK
};
int main() {
int i;
C c;
i = c; // C2264
D d;
i = d; // OK
}