The information in this article applies to:
SYMPTOMSIf a single name refers to both a class name and a function name, errors similar to the following may be incorrectly generated:
RESOLUTIONReplace the using declaration with a using directive. For example, in the following code replace the using declarations:
with one:
Please see the MORE INFORMATION section for a sample that demonstrates the
workaround.
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
Section 7.3.3, paragraphs 4 thru 15 of the C++ Final Draft International
Specification discuss this language behaviour in detail:
If the set of declarations and using-declarations for a single name are given in a declarative region, --they shall all refer to the same, or all refer to functions; or --exactly one declaration shall declare a class name or enumeration name and the other declarations shall all refer to the same entity or all refer to functions; in this case the class name or enumeration name is hidden. Sample Code
Additional query words:
Keywords : kbtool kbVC500bug kbVC600fix |
Last Reviewed: March 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |