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
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for