Compiler Warning C4986
'function': exception specification does not match previous declaration
This warning can be generated when there is an exception specification in one declaration and not the other.
By default, C4986 is off. For more information, see Compiler Warnings That Are Off by Default.
Examples
The following sample generates C4986.
class X { };
void f1() throw (X*);
// ...
void f1()
{
// ...
}
The following sample eliminates this warning.
class X { };
void f1() throw (X*);
// ...
void f1() throw (X*)
{
// ...
}
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ