FIX: C2974 Error When Calling Templated Base Class Functions (131376)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Professional Edition 2.0
- Microsoft Visual C++, 32-bit Professional Edition 2.1
This article was previously published under Q131376 SYMPTOMS
Calling a member function of a templated base class through the 'this'
pointer produces the following erroneous error:
error C2974: '<base templated class name>' : invalid template actual
argument '#1', type expected.
RESOLUTION
Call the function without using the 'this' pointer.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem was fixed in Microsoft
Visual C++, 32-bit Edition, version 4.0.
| Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
|---|
| Keywords: | kbbug kbCompiler kbCPPonly kbfix KB131376 |
|---|
|