Compiler Error C3755
'delegate': a delegate may not be defined
A delegate (C++ Component Extensions) can be declared but not defined.
Examples
The following sample generates C3755.
// C3755.cpp
// compile with: /clr /c
delegate void MyDel() {}; // C3755
C3755 can also occur if you attempt to create a delegate template. The following sample generates C3755.
// C3755_b.cpp
// compile with: /clr /c
ref struct R {
template<class T>
delegate void D(int) {} // C3755
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for