नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'class::identifier' : symbol cannot be used in a member using-declaration
Remarks
A using declaration uses a symbol, such as a namespace name. A using declaration is for declaring base class members.
Example
The following example generates C2886:
// C2886.cpp
// compile with: /c
namespace Z {
int i;
}
class B {
protected:
int i;
};
class D : public B {
// Error: Z is a namespace
using Z::i; // C2886
// OK: B is a base class
using B::i;
};