The information in this article applies to:
SYMPTOMS
If all the template parameters are not used in function arguments or return type of a template function, the template functions are not overloaded correctly. CAUSEThe bug is the result of the way the compiler decorates template function names. Name Decoration uses the arguments and return type and doesn't use the explicitly specified template argument type. Therefore, all three template function instantiations receive the same decorated name, as seen in the sample code the "More Information" section. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONPlease refer to the C++ Standard, section 14.8.1, for information on explicit template argument specification. Steps to Reproduce BehaviorThe following sample code demonstrates the problem:
Additional query words: STL
Keywords : kbtemplate kbCompiler kbCPPonly kbLangCPP kbSTL kbVC kbVC500 kbVC500bug kbVC600 kbVC600bug kbDSupport |
Last Reviewed: November 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |