#include #include struct foo { bool operator<(const foo&) const { return false; } }; int main(int, char*[]) { std::list v; std::stable_sort(v.begin(), v.end()); return 0; }