The information in this article applies to:
SYMPTOMSThe compiler generates the compiler error C2734 and C2166, when compiling a template function with a const reference of class T as an argument, where class T is a template parameter.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 6.0 for Windows. MORE INFORMATION
The following sample demonstrates the problem and the workaround.
Sample Code
Additional query words:
Keywords : kbtool kbVC500bug kbVC600fix |
Last Reviewed: February 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |