mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-29 01:24:25 +02:00
hashlib: fix pyosys
This commit is contained in:
+6
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user