[Bug libstdc++/101482] operator== for basic_string and __versa_string should check sizes first
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 16 09:47:08 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101482
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-06-16
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jiang An from comment #0)
> It seems that the resolution should be generalized to all specializations of
> basic_string (by removing the legacy operator== overload and SFINAE in the
> new overload, which is already done by libc++ and msvc stl).
Yes, https://wg21.link/lwg2852 clarified that we can do that.
> IMO the
> generalized resolution can also be applied to operator== for __versa_string.
Yes I'll do that, thanks.
More information about the Gcc-bugs
mailing list