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 3) C4538

Error Message

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

A qualifier keyword was applied to an array incorrectly. For more information, see array.

The following sample generates C4538:

// C4538.cpp
// compile with: /clr /W3 /LD
const array<int> ^f1();   // C4538
array<const int> ^f2();   // OK

Community Additions

© 2015 Microsoft