--- Comment #3 from redi at gcc dot gnu dot org 2010-08-14 14:00 ---
You probably want something like
bool operator<(const E& e2) const
{
return x != e2.x ? x < e2.x : a < e2.a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45284
--- Comment #2 from schwab at linux-m68k dot org 2010-08-14 08:44 ---
Your operator< is not strict (!operator<(x,x) for all x).
--
schwab at linux-m68k dot org changed:
What|Removed |Added
---
--- Comment #1 from boris at dolgov dot name 2010-08-14 07:37 ---
Created an attachment (id=21476)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21476&action=view)
The array, where sort fails
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45284