Compiler Error C2874
using-declaration causes a multiple declaration of 'symbol'
The declaration causes the same item to be defined twice.
The following sample generates C2874:
// C2874.cpp
namespace Z {
int i;
}
int main() {
int i;
using Z::i; // C2874, i already declared
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for