“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
};
“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
};