The information in this article applies to:
SYMPTOMSWhen encountering a cast to a structure pointer in the default argument of a class member function, the Visual C++ compiler generates the following error: This error does not occur if the function declaration is not a member of a class. RESOLUTIONIf you are casting from an integral literal, remove the cast. For example, change this:
to this:
If you are casting from a different structure type, remove the struct
keyword from the cast. For example, change this:
to this:
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. Additional query words: kbVC400bug
Keywords : kbCompiler kbCPPonly kbVC kbVC500fix |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |