diff options
author | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-04-20 05:37:10 +0000 |
---|---|---|
committer | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-04-20 05:37:10 +0000 |
commit | ecaa892e3530a3cc0fde56e1724538475c017857 (patch) | |
tree | 9f17118729e71cfca66068ca39d8dcb864a111cf /kernel/hashlib.h | |
parent | 95b94ad19b025cef0617610a2605f23688a48a2f (diff) | |
download | yosys-ecaa892e3530a3cc0fde56e1724538475c017857.tar.gz yosys-ecaa892e3530a3cc0fde56e1724538475c017857.tar.bz2 yosys-ecaa892e3530a3cc0fde56e1724538475c017857.zip |
Add rvalue-reference-accepting `entry_t` constructor for `pool`.
Diffstat (limited to 'kernel/hashlib.h')
-rw-r--r-- | kernel/hashlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 1a21494a7..b0e946072 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -642,6 +642,7 @@ protected: entry_t() { } entry_t(const K &udata, int next) : udata(udata), next(next) { } + entry_t(K &&udata, int next) : udata(std::move(udata)), next(next) { } }; std::vector<int> hashtable; |