From: Alberto Gonzalez Date: Mon, 20 Apr 2020 05:37:10 +0000 (+0000) Subject: Add rvalue-reference-accepting `entry_t` constructor for `pool`. X-Git-Tag: working-ls180~598^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecaa892e3530a3cc0fde56e1724538475c017857;p=yosys.git Add rvalue-reference-accepting `entry_t` constructor for `pool`. --- 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 hashtable;