Compiler Error C2583
Collapse the table of content
Expand the table of content

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 {
   int i;
   A() const;   // C2583

   // try the following line instead
   // A();
© 2016 Microsoft