mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
hashlib: fix pyosys
This commit is contained in:
parent
c10b3f57e1
commit
db04788c18
2 changed files with 22 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue