The information in this article applies to:
SYMPTOMSCompiling the code that uses a class declaration with a typedef of itself, as demonstrated by the sample code in the More Information section, produces this error:
RESOLUTIONUse a forward declaration for the class, and place the typedef line before the class declaration:
Alternatively, enclose the returned typedef name in parentheses to indicate
that the constructor is used to return the value (see AltRetB in the sample
code).
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual C++, 32-bit Edition, version 4.0. MORE INFORMATIONSample Code
Additional query words: 2.00 9.00 buglist2.00
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: January 18, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |