Export (0) Print
Expand All
Expand Minimize

Compiler Error C2458

Error Message

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

Community Additions

ADD
Show:
© 2014 Microsoft