Compilerfehler C2863
'Schnittstelle': Eine Schnittstelle kann keine 'friends' besitzen
Das Deklarieren von friends für eine Schnittstelle ist nicht zulässig.
Im folgenden Beispiel wird C2863 generiert:
// 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
};