This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49219] [c++0x] comparing unordered containers illegally require key compare
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 29 May 2011 12:02:55 +0000
- Subject: [Bug libstdc++/49219] [c++0x] comparing unordered containers illegally require key compare
- Auto-submitted: auto-generated
- References: <bug-49219-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49219
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #1 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2011-05-29 12:02:36 UTC ---
(In reply to comment #0)
> Each of "bool xf=(x==x);" require "bool K::operator!=(K const&)const" and/or
> "bool K::operator==(K const&)const". The provided E type should be used for key
> compare.
No. Equality of unordered containers is required to use operator== of the
value_type (23.2.5 p11 of the FDIS).