Compilerwarnung (Ebene 1) C4393

"var" : const hat keine Auswirkung auf Literaldatenmemm; Ignoriert

Ein Literaldatenmemm wurde auch als "const" angegeben. Da ein Literaldatenmemm "const" impliziert, müssen Sie der Deklaration keine Const hinzufügen.

Im folgenden Beispiel wird C4393 generiert:

// C4393.cpp
// compile with: /clr /W1 /c
ref struct Y1 {
   literal const int staticConst = 10;   // C4393
   literal int staticConst2 = 10;   // OK
};