Compiler Error C2611

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Compiler Error C2611 on docs.microsoft.com. '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: