[Bug libstdc++/49219] [c++0x] comparing unordered containers illegally require key compare
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Sun May 29 12:32:00 GMT 2011
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).
More information about the Gcc-bugs
mailing list