नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'interface' : an interface cannot have friends
Remarks
Declaring friends on an interface is not allowed.
Example
The following example generates C2863:
// C2863.cpp
// compile with: /c
#include <unknwn.h>
class CMyClass {
void *f();
};
__interface IMyInterface {
void g();
friend int h(); // 2863
friend interface IMyInterface1; // C2863
friend void *CMyClass::f(); // C2863
};