The information in this article applies to:
SYMPTOMSIn certain cases, Visual C++ allows abstract classes to be instantiated as temporary objects. The sample code below demonstrates this. CAUSEAn abstract class should not be allowed to be instantiated as an object. An abstract class is any class with at least one pure virtual function. This is part of the definition of the C++ language. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++, 32-bit Edition, version 4.1. MORE INFORMATIONSample Code
Additional query words: 4.00
Keywords : kbCompiler kbCPPonly kbLangCPP kbVC |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |