The information in this article applies to:
SYMPTOMSUsing a class or function template may incorrectly generate a C4114 warning. The sample code in this article demonstrates a case where this occurs. CAUSE
The compiler incorrectly expands the type of the function parameter to
const T as it expands a template with type const T when the definition of a
function or member function template has a parameter that takes a const T.
RESOLUTIONThis warning can be safely ignored. To disable all occurrences of this warning, use the #pragma warning preprocessor directive. The Help file demonstrates how to use this pragma. 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 INFORMATIONSample Code to Reproduce Problem
Additional query words: kbVC400bug 2.00 2.10 2.20 9.00 9.10 10.00 10.10 10.20
Keywords : kbCompiler kbCPPonly kbVC kbVC500fix |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |