नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'class::symbol' : access-declarations are deprecated; member using-declarations provide a better alternative
Remarks
The ANSI C++ committee has declared access declarations (changing the access of a member in a derived class without the using keyword) to be outdated. Access declarations may not be supported by future versions of C++.
Example
The following example generates C4516:
// C4516.cpp
// compile with: /W4
class A
{
public:
void x(char);
};
class B : protected A
{
public:
A::x; // C4516 on access-declaration
// use the following line instead
// using A::x; // using-declaration, ok
};
int main()
{
}