Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 715 Bytes

compiler-error-c3768.md

File metadata and controls

35 lines (27 loc) · 715 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3768
Compiler Error C3768
11/04/2016
C3768
C3768
091f0d53-1dff-43fd-813d-5c43c85b6ab0

Compiler Error C3768

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

Remarks

The /clr:pure compiler option is deprecated in Visual Studio 2015 and unsupported in Visual Studio 2017.

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

Example

The following sample generates C3768:

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

int main()
{
   &(A::f);   // C3768
}