The information in this article applies to:
SYMPTOMSWhen you use an exception specification in a class or function template, the following error occurs:
RESOLUTIONRemove the exception specification from the function declaration and definition. By design, it is not supported. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 5.0. MORE INFORMATIONThe use of exception specifications is not supported in this version of Microsoft C++. However, you would expect the compiler to generate the following warning instead of an error: This level 4 warning is generated as expected when using an exception specification in a non-templated class or function. Sample Code to Generate Error C2961 and Demonstrate Problem
Sample Code to Generate Warning C4290 and Demonstrate Resolution
Additional query words: 9.0 9.00 9.1 9.10 9.2 9.20
Keywords : kbcode kberrmsg kbtool kbLangCPP kbVC kbVC500fix |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |