Compiler Error C2874

using-declaration causes a multiple declaration of 'symbol'

Your using-declaration is incorrect because it would cause the same item to be defined twice.

For example, the following code shows an incorrect using declaration.

namespace Z {
   int i;
}

void a() {
   int i;
   using Z::i; // error C2874, i already declared
}