Napomena
Za pristup ovoj stranici potrebna je autorizacija. Možete se pokušati prijaviti ili promijeniti direktorije.
Za pristup ovoj stranici potrebna je autorizacija. Možete pokušati promijeniti direktorije.
'class' : a managed or WinRT type cannot have any friend functions/classes/interfaces
Remarks
Managed types and Windows Runtime types do not allow friends. To fix this error, do not declare friends inside managed or Windows Runtime types.
Example
The following example generates C3809:
// C3809a.cpp
// compile with: /clr
ref class A {};
ref class B
{
public:
friend ref class A; // C3809
};
int main()
{
}