This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/44068] std::map deals with keys of objects that were not constructed
- From: "chris at bubblescope dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2010 22:44:05 -0000
- Subject: [Bug libstdc++/44068] std::map deals with keys of objects that were not constructed
- References: <bug-44068-19163@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from chris at bubblescope dot net 2010-05-10 22:44 -------
Your operator< is not valid. It must be a strict-weak ordering.
In particular, it must not be possible that A < B and B < A, but in your code
this is possible.
--
chris at bubblescope dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44068