Compiler Warning (level 4) C4515
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 Warning (level 4) C4515

Error Message

'namespace' : namespace uses itself

A namespace is used recursively.

The following sample generates C4515:

// C4515.cpp
// compile with: /W4
namespace A
   using namespace A; // C4515

int main()
© 2015 Microsoft