The information in this article applies to:
SYMPTOMSWhen you create a static object created in a friend function, it is denied access to protected members of a class and compiler error C2248 appears as follows:
RESOLUTIONCreate the static object using the new operator. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION
The following sample demonstrates the problem and the workaround.
Sample Code
Additional query words:
Keywords : kbcode kbtool kbVC500bug kbVC600bug |
Last Reviewed: March 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |