Sorting std::list of pointers
How do I sort a std::list<someClass*>
? The workaround posted here: http://suppo开发者_运维技巧rt.microsoft.com/kb/265109 doesn’t seem to work.
error: '
greater<class Object *>
' has already been instantiated from the primary template
I’m using MS VC++ 6.0 as IDE.
Probably this might help you: STL Algorithms: sort
精彩评论