Compiler Error C2869
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C2869

Error Message

'name' : has already been defined to be a namespace

You cannot reuse a name already used as a namespace.

The following sample generates C2869:

// C2869.cpp
// compile with: /c
namespace A { int i; };

class A {};   // C2869, A is already used
© 2016 Microsoft