Compiler Warning (level 1) C4227
anachronism used : qualifiers on reference are ignored
Using qualifiers like const
or volatile
with C++ references is an outdated practice.
Example
// C4227.cpp
// compile with: /W1 /c
int j = 0;
int &const i = j; // C4227
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ