mirror of https://github.com/YosysHQ/yosys.git
Add rvalue-reference-accepting `entry_t` constructor for `pool`.
This commit is contained in:
parent
95b94ad19b
commit
ecaa892e35
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue