Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 4) C4400

Error Message

'type' : const/volatile qualifiers on this type are not supported

The const (C++)and volatile (C++)qualifiers will not work with variables of common language runtime types.

Example

The following sample generates 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
}

Community Additions

ADD
Show:
© 2015 Microsoft