3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

hashlib: fix pyosys

This commit is contained in:
Emil J. Tywoniak 2024-10-09 15:00:31 +02:00
parent c10b3f57e1
commit db04788c18
2 changed files with 22 additions and 13 deletions

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);
}