From: Eddie Hung Date: Thu, 12 Mar 2020 21:41:27 +0000 (-0700) Subject: kernel: IdString:in() to use perfect forwarding X-Git-Tag: working-ls180~697^2~7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a8cecf03e5b1de409b2c8fabf4355157c5e97b5;p=yosys.git kernel: IdString:in() to use perfect forwarding --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 7c1523f0b..1283db134 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -359,8 +359,8 @@ namespace RTLIL // of cell types). the following functions helps with that. template - bool in(T first, Args... rest) const { - return in(first) || in(rest...); + bool in(T first, Args&&... rest) const { + return in(first) || in(std::forward(rest)...); } bool in(IdString rhs) const { return *this == rhs; }