Export (0) Print
Expand All
Expand Minimize

Compiler Error C3640

Error Message

'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(){}

Community Additions

© 2015 Microsoft