Skip to content

Commit a9a31c1

Browse files
authored
Merge pull request #68193 from allevato/no-generic-char-traits
Replace generic `basic_string` overloads of `StableHasher::combine` with concrete ones.
2 parents 52c32c5 + cfc8ca6 commit a9a31c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/swift/Basic/StableHasher.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ class StableHasher final {
173173
return combine_many(arg.first, arg.second);
174174
}
175175

176-
template <typename T> void combine(const std::basic_string<T> &arg) {
176+
void combine(const std::basic_string<char> &arg) {
177+
return combine_range(arg.begin(), arg.end());
178+
}
179+
180+
void combine(const std::basic_string<wchar_t> &arg) {
177181
return combine_range(arg.begin(), arg.end());
178182
}
179183

0 commit comments

Comments
 (0)