Article ID: 240014 - Last Review: December 8, 2003 - Revision: 3.0 FIX: Listing Sort Function Removes ElementsThis article was previously published under Q240014 On This PageSYMPTOMS
If a list has over 32K elements, list::sort removes the elements. Please refer to the Sample Program in the MORE INFORMATION section for details. RESOLUTION
The bug is in the header file <list>. In the sort() function: NOTE: Since the resolution involves modifying a system header file, extreme care should be taken to make sure nothing else is changed in the header file. Microsoft is not responsible for any problems resulting due to unwanted changes to the system header files. STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem was corrected in Microsoft Visual C++ .NET. MORE INFORMATIONSteps to Reproduce BehaviorThe following sample program demonstrates the bug. | Article Translations
|

Back to the top
