Export (0) Print
Expand All
Expand Minimize

Compiler Error C3080

Error Message

'finalizer_function' : a finalizer cannot have a storage-class-specifier

For more information, see Destructors and Finalizers in Visual C++.

Example

The following sample generates C3080.

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

Community Additions

ADD
Show:
© 2014 Microsoft