This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/49219] [c++0x] comparing unordered containers illegally require key compare


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]