[Bug c++/31155] priority_queue sorts wrong with std::greater
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Mar 12 20:05:00 GMT 2007
------- Comment #2 from pcarlini at suse dot de 2007-03-12 20:05 -------
This is how priority_queue works: it makes an "heap" (in the exact computer
science meaning), therefore, in particular, there is no guarantee that the
contents are all fully sorted, only that the smallest is the first one (the
largest with the default predicate).
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31155
More information about the Gcc-bugs
mailing list