Compiler Error C3768

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C3768.

cannot take the address of a virtual vararg function in pure managed code

When compiling with /clr:pure, you cannot take the address of a virtual vararg function.

The following sample generates C3768:

// C3768.cpp  
// compile with: /clr:pure  
struct A  
{  
   virtual void f(...);  
};  
  
int main()  
{  
   &(A::f);   // C3768  
}  

Show: