Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2458
Collapse the table of content
Expand the table of content

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

© 2015 Microsoft