https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101482

            Bug ID: 101482
           Summary: The resolution of #32907 is too restricted
           Product: gcc
           Version: 11.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: de34 at live dot cn
  Target Milestone: ---

The resolution of bug #32907 is restricted to a few specializations
(basic_string<CharT>, where bool(__is_char<CharT>::value) is true).

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). IMO the generalized
resolution can also be applied to operator== for __versa_string.

Reply via email to