Compiler Warning (level 4) C4208
nonstandard extension used : delete [exp] - exp evaluated but ignored
With Microsoft extensions (/Ze), you can delete an array using a value within brackets with the delete operator. The value is ignored.
// C4208.cpp
// compile with: /W4
int main()
{
int * MyArray = new int[18];
delete [18] MyArray; // C4208
MyArray = new int[18];
delete [] MyArray; // ok
}
Such values are invalid under ANSI compatibility (/Za).
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ