hashlib: fix pyosys

This commit is contained in:
Emil J. Tywoniak
2024-12-18 14:58:31 +01:00
parent c10b3f57e1
commit db04788c18
2 changed files with 22 additions and 13 deletions
+6 -1
View File
@@ -111,7 +111,12 @@ class Hasher {
}
template<typename T>
void acc(T t) {
void acc(T&& t) {
*this = hash_ops<std::remove_cv_t<std::remove_reference_t<T>>>::hash_acc(std::forward<T>(t), *this);
}
template<typename T>
void acc(const T& t) {
*this = hash_ops<T>::hash_acc(t, *this);
}