开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜