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
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();
};