Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
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.

Compiler Error C2883

Error Message

'name' : function declaration conflicts with 'identifier' introduced by using-declaration

You tried to define a function more than once. The first definition was made from a namespace with a using declaration. The second was a local definition.

The following sample generates C2883:

// C2883.cpp
namespace A {
   void z(int);

int main() {
   using A::z;
   void z(int);   // C2883  z is already defined

Community Additions

© 2015 Microsoft