Compiler Error C3080
'finalizer_function' : a finalizer cannot have a storage-class-specifier
For more information, see Destructors and finalizers in How to: Define and consume classes and structs (C++/CLI).
Example
The following sample generates C3080.
// C3080.cpp
// compile with: /clr /c
ref struct rs {
protected:
static !rs(){} // C3080
!rs(){} // OK
};
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir