Kompilatorfel C3080

"finalizer_function" : en finalator kan inte ha en storage-class-specifier

Anmärkningar

Mer information finns i Destructors and finalizers in How to: Define and consume classes and structs (C++/CLI).

Example

I följande exempel genereras C3080.

// C3080.cpp
// compile with: /clr /c
ref struct rs {
protected:
   static !rs(){}   // C3080
   !rs(){}   // OK
};