This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/79206] string_view operator== could do an early exit if sizes differ


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Jan 24 12:00:47 2017
New Revision: 244865

URL: https://gcc.gnu.org/viewcvs?rev=244865&root=gcc&view=rev
Log:
PR libstdc++/79206 check string_view sizes in operator==

        PR libstdc++/79206
        * include/experimental/string_view (operator==): Check sizes first.
        * include/std/string_view (operator==): Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/experimental/string_view
    trunk/libstdc++-v3/include/std/string_view

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]