description | title | ms.date | f1_keywords | helpviewer_keywords | ||
---|---|---|---|---|---|---|
Learn more about: Compiler Error C2035 |
Compiler Error C2035 |
08/18/2022 |
|
|
a non-virtual destructor with 'accessibility' accessibility is not allowed for this type
a non-virtual destructor must have 'protected private' or 'private' accessibility
A non-virtual Windows Runtime class has an access specifier or sealed
specifier that's not allowed for a non-virtual destructor. For more information, see Ref classes and structs.
To fix this error, change the accessibility of the destructor.