共用方式為


編譯器錯誤 C2380

在 'identifier' 前定義類型 (具有傳回類型的建構函式,或目前類別名稱的重新定義不合法?)

建構函式會傳回值或重新定義類別名稱。

下列範例會產生 C2326:

// C2380.cpp
// compile with: /c
class C {
public:
   int C();   // C2380, specifies an int return
   int C;   // C2380, redefinition of i
   C();   // OK
};