Compiler Warning (level 1) C4227
Collapse the table of content
Expand the table of content
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. ArchiveDisclaimer

Compiler Warning (level 1) C4227

Error Message

anachronism used : qualifiers on reference are ignored

Using qualifiers like const or volatile with C++ references is an outdated practice.


// C4227.cpp
// compile with: /W1 /c
int j = 0;
int &const i = j;   // C4227
© 2015 Microsoft