Export (0) Print
Expand All
Expand Minimize

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.

Example

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
}

Community Additions

ADD
Show:
© 2014 Microsoft