Compiler Error C2458
'identifier' : redefinition within definition
A class, structure, union, or enumeration is redefined in its own declaration.
The following sample generates C2458:
// C2458.cpp
class C {
enum i { C }; // C2458
};
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'identifier' : redefinition within definition
A class, structure, union, or enumeration is redefined in its own declaration.
The following sample generates C2458:
// C2458.cpp
class C {
enum i { C }; // C2458
};