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.
The following sample generates C4986.