Replace generic basic_string overloads of StableHasher::combine with concrete ones.

The generic `char_traits` implementation was deprecated and has since
been removed from libc++ (https://reviews.llvm.org/D157058). When
building with a libc++ that has it removed, the `basic_string<T>`
overloads cause errors during template substitution.
This commit is contained in:
Tony Allevato
2023-08-29 13:27:13 -04:00
parent 6de859720a
commit cfc8ca6418

View File

@@ -173,7 +173,11 @@ public:
return combine_many(arg.first, arg.second);
}
template <typename T> void combine(const std::basic_string<T> &arg) {
void combine(const std::basic_string<char> &arg) {
return combine_range(arg.begin(), arg.end());
}
void combine(const std::basic_string<wchar_t> &arg) {
return combine_range(arg.begin(), arg.end());
}