Export (0) Print
Expand All
Expand Minimize

Compiler Error C2868

'identifier' : illegal syntax for using-declaration; expected qualified-name

A using declaration requires a qualified name.

The following sample generates C2868:

// C2868.cpp
class X {
public:
   int i;
};

class Y : X {
public:
   using X::i;   // OK
};

int main() {
   using X;   // C2868
}

Community Additions

ADD
Show:
© 2014 Microsoft