Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
'name' : introduced by using-declaration conflicts with local function 'function'
Remarks
You tried to define a function more than once. The first definition is a local definition. The second is from a namespace with a using declaration.
Example
The following example generates C2884:
// C2884.cpp
namespace A {
void z(int);
}
void f() {
void z(int);
using A::z; // C2884 z is already defined
}