Article ID: 165803 - View products that this article applies to.
This article was previously published under Q165803
The sample code in the MORE INFORMATION section causes the compiler error C2783:
'declaration' : could not deduce template argument for 'identifier'
The workaround is to avoid argument deduction by specifying the template-parameter-list when calling the function template.
Microsoft 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.
The following sample code demonstrates the problem and the workaround:
Article ID: 165803 - Last Review: July 5, 2005 - Revision: 1.1
Contact us for more help
Connect with Answer Desk for expert help.