Article ID: 165803 - View products that this article applies to.
This article was previously published under Q165803
This article has been archived. It is offered "as is" and will no longer be updated.
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: January 9, 2015 - Revision: 1.1