FIX: Error C2783 - Cannot Deduce Non-Type Template Parameter (165803)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q165803 SYMPTOMS
The sample code in the MORE INFORMATION section causes the compiler error
C2783:
'declaration' : could not deduce template argument for 'identifier'
RESOLUTION
The workaround is to avoid argument deduction by specifying the template-parameter-list when calling the function template.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Visual C++ version 6.0.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbBug kbfix kbVC600fix KB165803 |
---|
|