Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'function' : ambiguous delegate function
Remarks
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 (C++ Component Extensions).
Example
The following example 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
}