Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'function': exception specification does not match previous declaration
Remarks
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.
Example
The following example generates C4986.
class X { };
void f1() throw (X*);
// ...
void f1()
{
// ...
}
The following example eliminates this warning.
class X { };
void f1() throw (X*);
// ...
void f1() throw (X*)
{
// ...
}