Files
boost_concept_check/bad_error_eg.cpp
2000-10-29 21:48:06 +00:00

12 lines
206 B
C++

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