Compilerfehler C2583

'Bezeichner': 'const/volatile' 'this'-Zeiger ist ungültig für Konstruktoren/Destruktoren

Ein Konstruktor oder Destruktor ist als const oder volatile deklariert.Dies ist nicht zulässig.

Im folgenden Beispiel wird C2583 generiert:

// C2583.cpp
// compile with: /c
class A {
public:
   int i;
   A() const;   // C2583

   // try the following line instead
   // A();
};