Compiler Error C2583
'identifier' : 'const/volatile' 'this' pointer is illegal for constructors/destructors
A constructor or destructor is declared const
or volatile
. This is not allowed.
The following sample generates C2583:
// C2583.cpp
// compile with: /c
class A {
public:
int i;
A() const; // C2583
// try the following line instead
// A();
};
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