This documentation is archived and is not being maintained.

Compiler Error C3375

Error Message

'function' : ambiguous delegate function

A delegate instantiation could have been to a static member function, or as an unbound delegate to an instance function, so the compiler issued this error.

For more information, see delegate.


The following sample generates C3375.

// C3375.cpp
// compile with: /clr
ref struct R {
   static void f(R^) {}
   void f() {}

delegate void Del(R^);

int main() {
   Del ^ a = gcnew Del(&R::f);   // C3375