Compiler Error C2611

 

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 C2611.

token' : illegal following '~' (expected identifier)

The token is not an identifier.

The following sample generates C2611:

// C2611.cpp  
// compile with: /c  
class C {  
   C::~operator int();   // C2611  
   ~C();   // OK  
};  

Show: