The information in this article applies to:
SYMPTOMSThe compiler generates a compiler error C2248 as follows: under the following circumstances:
RESOLUTIONDo not declare a template function as a friend of a class. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.This problem was corrected in Microsoft Visual C++ version 6.0. MORE INFORMATION
The following sample demonstrates the problem and the workaround.
Sample Code NOTE: Defining the template function before the class definition eliminates
the compiler error C2248. But the compiler does not generate any code when
you call the template function.
Additional query words:
Keywords : kbtool kbVC500bug kbVC600fix |
Last Reviewed: March 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |