Hi, Can anyone tell me if there is a limit of 2^15 (32768) items that can be sorted in a list using the list function sort()? I am trying the following code in Visual C++ 6 on Windows 2000. std::list TestList; for (int i=0; i<40000; i++) TestList.push_back(i); int nSize = TestList.size(); test.sort(); int nSize2 = TestList.size(); nSize is 40000. nSize2 is 7232. The difference between the two values is always 32768. Less than 32768 values sorts fine. NOTE: max_size() returns a value of > 100000000. I could not find any information that mentions this limit but it is clearly there. Can anyone suggest an alternative?
G
GMoss
@GMoss