[Bug libstdc++/43595] std::unique incorrectly assumes transitive property on functor, operator==
chris at bubblescope dot net
gcc-bugzilla@gcc.gnu.org
Wed Mar 31 08:10:00 GMT 2010
------- Comment #1 from chris at bubblescope dot net 2010-03-31 08:09 -------
Fixing this would make std::unique quite a bit less efficient. I personally
believe the intention was always to make it an equivalence relation and as you
say C++0x tightens up the condition.
If this had come up 5 or 6 years ago, I might have suggested fixing it, but
changing it now would produce an incompatibility between our C++03 and C++0x
implementations unnecessarily.
Does any other compiler get this right? If they did that would make a more
convincing case, but I'm fairly sure they don't.
--
chris at bubblescope dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43595
More information about the Gcc-bugs
mailing list