共用方式為


編譯器錯誤 C2380

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

備註

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

Example

以下範例生成 C2380:

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