C++/CLI protected delegate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The following code

public ref class X
{
protected:
delegate void D();
void F(D^ a) { }
};

gives warning C4677: 'F': signature of non-private member contains assembly
private type 'X:D'

In another assembly the following code (C#) works fine:
public class Y : X {
public void Callback() { }
Y() { F(Callback); }
}
 
wpcmame said:
The following code

public ref class X
{
protected:
delegate void D();
void F(D^ a) { }
};

gives warning C4677: 'F': signature of non-private member contains
assembly
private type 'X:D'

Looks like a bug, I suggest you file it on Connect.
 
Back
Top