This documentation is archived and is not being maintained.

Compiler Error C2611

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

The token is not an identifier.

Example

// C2611.cpp
class C
{
   C::~operator int();    // C2611
   ~C();                  // OK, destructor declaration
};
Show: