Redigera

Dela via


Compiler Warning C4956

'type' : this type is not verifiable

Remarks

This warning is generated when /clr:safe is specified and your code contains a type that is not verifiable. The /clr:safe compiler option is deprecated in Visual Studio 2015 and unsupported in Visual Studio 2017.

For more information, see Pure and Verifiable Code (C++/CLI).

This warning is issued as an error and can be disabled with the warning pragma or the /wd compiler option.

Example

The following sample generates C4956:

// C4956.cpp
// compile with: /clr:safe
int* p;   // C4956