Compiler Error C3640
'member' : a referenced or virtual member function of a local class must be defined
The compiler requires certain functions to be defined.
The following sample generates C3640:
// C3640.cpp
void f()
{
struct S
{
virtual void f1(); // C3640
// Try the following line instead:
// virtual void f1(){}
};
}
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