FIX: Exception Specification in Template causes C2961 Error (133071)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Learning Edition 4.0
- Microsoft Visual C++, 32-bit Professional Edition 2.0
- Microsoft Visual C++, 32-bit Professional Edition 2.1
- Microsoft Visual C++, 32-bit Professional Edition 2.2
- Microsoft Visual C++, 32-bit Professional Edition 4.0
- Microsoft Visual C++, 32-bit Professional Edition 4.1
This article was previously published under Q133071 SYMPTOMS
When you use an exception specification in a class or function template,
the following error occurs:
error C2961: syntax error : 'throw' : unexpected token in template
declaration
RESOLUTION
Remove the exception specification from the function declaration and
definition. By design, it is not supported.
STATUS
Microsoft 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.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbbug kbcode kberrmsg kbfix kbLangCPP kbVC500fix KB133071 |
---|
|