다음을 통해 공유


컴파일러 경고(수준 4, 오류) C4400

'type': const/volatile 이 형식의 한정자는 지원되지 않습니다.

비고

constvolatile 한정자는 공용 언어 런타임 형식 변수에서 작동하지 않습니다.

예시

다음 예제에서는 C4400을 생성합니다.

// C4400.cpp
// compile with: /clr /W4
// C4401 expected
using namespace System;
#pragma warning (disable : 4101)
int main() {
   const String^ str;   // C4400
   volatile String^ str2;   // C4400
}