Compiler Error C3080
Visual Studio 2015
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 C3080.
finalizer_function' : a finalizer cannot have a storage-class-specifier
For more information, see Destructors and Finalizers in Visual C++.
The following sample generates C3080.
// C3080.cpp
// compile with: /clr /c
ref struct rs {
protected:
static !rs(){} // C3080
!rs(){} // OK
};
Show: