Compiler Error C2872
Visual Studio .NET 2003
'symbol' : ambiguous symbol
The compiler cannot determine which symbol you are referring to.
The following sample generates C2872:
// C2872.cpp
namespace A
{
int i;
}
using namespace A;
int i;
void z()
{
::i++; // ok
A::i++; // ok
i++; // C2872, ::i or A::i?
}