diff options
author | 2024-08-01 18:00:24 -0700 | |
---|---|---|
committer | 2024-08-06 13:16:49 -0700 | |
commit | bb01a640caadc9b85ed522d25480322e48da499e (patch) | |
tree | 9dce4c4f36446f9dddb38d1c7ce6362a1a738489 /libs/binder/Status.cpp | |
parent | 9d04fe2c66aff0fea66657f397827ed334ea3b7d (diff) |
libmath: use TVECHELPERS_STD_HASH macro for std::hash
Upstream Clang has enabled the -frelaxed-template-template-args option
by default (llvm.org/PR89807) and deprecated
-fno-relaxed-template-template-args. With the new relaxed
template-template behavior, libmath's partial specialization is also a
candidate for std::hash<std::string>
(i.e. std::hash<std::basic_string<char>> where VECTOR is
std::basic_string and T is char).
To avoid the ambiguity, use a C macro to define a partial
specialization for each of TVec{2,3,4}, TMat{22,33,44}, and
TQuaternion.
Bug: http://b/341084395
Test: atest hashcombine_test
Change-Id: I0837e0de327914f94a1dd13a49b470fc78e164b1
Diffstat (limited to 'libs/binder/Status.cpp')
0 files changed, 0 insertions, 0 deletions