The information in this article applies to:
SYMPTOMSIf "operator =" is overridden in an aggregate class, you can no longer use an initializer list to construct a constant object. CAUSEThe assignment operator causes the const object to be place in read only memory before it is initialized. Upon initialization of the object, the application fails with an access violation. RESOLUTIONTo work around this problem, create a constructor to initialize the object. STATUSMicrosoft has confirmed this to be a bug in the products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONThe following sample generates an Application Error message box when initializing kZeroMLUInt64: Sample Code
Additional query words: 8.00 9.00 1.00 2.00
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |