This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/62187] std::string==const char* could compare sizes first
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Jan 2017 15:08:25 +0000
- Subject: [Bug libstdc++/62187] std::string==const char* could compare sizes first
- Auto-submitted: auto-generated
- References: <bug-62187-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62187
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I've also created an LWG issue about this, so I hope before Stage 1 starts
we'll have LWG guidance saying it's OK to do this for all basic_string, not
only std::string and std::wstring.
We should also make __is_char<char16_t> and __is_char<char32_t> true.