Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'identifier': 'const/volatile' 'this' pointer is illegal for constructors/destructors
Remarks
A constructor or destructor can't be declared const
or volatile
.
Example
The following example generates C2583:
// C2583.cpp
// compile with: /c
struct S
{
S() const {} // C2583
// Try the following line instead:
// S() {}
};