Compiler Error C2879
'symbol' : only an existing namespace can be given an alternative name by a namespace alias definition
You cannot create a namespace alias to a symbol other than a namespace.
The following sample generates C2879:
// C2879.cpp
int main() {
int i;
namespace A = i; // C2879 i is not a namespace
}
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