Compiler Error C2884
'name' : introduced by using-declaration conflicts with local function 'function'
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.
The following sample generates C2884:
// C2884.cpp
namespace A {
void z(int);
}
void f() {
void z(int);
using A::z; // C2884 z is already defined
}
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir