[Bug libstdc++/115939] Cannot unambiguously compare iterators in std::unordered_map with mapped type std::expected<std::any, Y>>
de34 at live dot cn
gcc-bugzilla@gcc.gnu.org
Fri Jul 19 10:59:11 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115939
Jiang An <de34 at live dot cn> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |de34 at live dot cn
--- Comment #4 from Jiang An <de34 at live dot cn> ---
(In reply to Jonathan Wakely from comment #3)
> I'll get to work on the std::expected proposal (which I expect will get
> treated as a DR for C++23 by all implementers, certainly in libstdc++). Once
> I've drafted that proposal, I'll push the corresponding code changes to
> libstdc++.
It seems to me that it's still needed to fix operator== for container iterators
after patching std::expected. IIUC the current standard wording doesn't allow
such iterator comparison to be hacked.
More information about the Gcc-bugs
mailing list