Teilen über


Compilerfehler C2648

'Identifier': Die Verwendung von Member als Standardparameter erfordert statisches Element.

Bemerkungen

Ein nicht statisches Element wird als Standardparameter verwendet.

Example

Im folgenden Beispiel wird C2648 generiert:

// C2648.cpp
// compile with: /c
class C {
public:
   int i;
   static int j;
   void func1( int i = i );  // C2648  i is not static
   void func2( int i = j );  // OK
};