[libc++] Enable hash only for the correct types
authorNikolas Klauser <nikolasklauser@berlin.de>
Mon, 22 Aug 2022 00:59:09 +0000 (02:59 +0200)
committerNikolas Klauser <nikolasklauser@berlin.de>
Fri, 26 Aug 2022 15:40:23 +0000 (17:40 +0200)
commit98f6a56f5ea2fc4ae7f4283b97073667a9e32cde
tree0064d8e40944bc2e024be6633c8e09f40a4fe99d
parent56e1f0f056506a23fc342a56a34e4137704220c1
[libc++] Enable hash only for the correct types

Also implement LWG3705.
Fixes https://github.com/llvm/llvm-project/issues/55823

Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D132338
libcxx/docs/Status/Cxx2bIssues.csv
libcxx/include/string
libcxx/include/string_view
libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp
libcxx/test/std/strings/string.view/string.view.hash/enabled_hashes.pass.cpp