Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 669 Bytes

compiler-error-c2883.md

File metadata and controls

27 lines (22 loc) · 669 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2883
Compiler Error C2883
11/04/2016
C2883
C2883
5c6d689d-ed42-41ad-b5c0-e9c2e0b8c356

Compiler Error C2883

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