Compiler Error C2867

'identifier' : is not a namespace

This error occurs when a using-directive is applied to something that is not a namespace. For example:

namespace N {
   class X {};
}
using namespace N::X;   //error