Microsoft KB Archive/275674

= BUG: C2955 Error When You Use a Template Name as a Function Argument =

Article ID: 275674

Article Last Modified on 7/5/2005

-

APPLIES TO


 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q275674



SYMPTOMS
You may receive the following error message if you try to use a template name as a function argument:

error C2955: 'S' : use of class template requires template argument List

Please refer to the sample code in the &quot;More Information&quot; section for details.



RESOLUTION
Use a different name for the template class or the function argument.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
The following sample code demonstrates the bug: // Test.cpp // Compiler option needed: none

template  struct S { };

int hoo (int *S);

Additional query words: C2955

Keywords: kbbug kblangcpp kbcompiler KB275674

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.