The information in this article applies to:
SYMPTOMSWhen compiling function templates that contain a literal character, the compiler may complain about 'ambiguous' parameter lists. Visual C++ version 4.0 may generate the following error: Visual C++ version 2.x may generate the following errors:
RESOLUTIONExplicitly type cast the literal character with "(char)" to eliminate this error. For example, in the sample code provided below, cast the literal character 'c' to (char)'c' to work around the problem. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 5.0. MORE INFORMATIONYou can use the following sample code to demonstrate the problem. Both functions (func(c) and func('c')) are necessary to reproduce the problem. Sample Code to Reproduce Problem
Additional query words: kbVC400bug buglist2.00 9.00 10.00 10.10 10.20
Keywords : kbtool kbCompiler kbCPPonly kbVC kbVC500fix |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |