Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 615 Bytes

compiler-error-c2577.md

File metadata and controls

29 lines (24 loc) · 615 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2577
Compiler Error C2577
11/04/2016
C2577
C2577
fc79ef83-8362-40a2-9257-8037c3195ce4

Compiler Error C2577

'member' : destructor/finalizer cannot have a return type

A destructor or finalizer cannot return a value of void or any other type. Remove the return statement from the destructor definition.

Example

The following sample generates C2577.

// C2577.cpp// compile with: /cclassA { public:A() {} ~A(){ return0; // C2577 } };
close