aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-03-12 14:41:27 -0700
committerEddie Hung <eddie@fpgeh.com>2020-04-02 07:14:08 -0700
commit4a8cecf03e5b1de409b2c8fabf4355157c5e97b5 (patch)
tree3c5a54f7f880a7524dfca8acd083bf473fd81bbf /kernel
parentfdafb74eb77e33e9fa2b4e591804d1d02c122ff9 (diff)
downloadyosys-4a8cecf03e5b1de409b2c8fabf4355157c5e97b5.tar.gz
yosys-4a8cecf03e5b1de409b2c8fabf4355157c5e97b5.tar.bz2
yosys-4a8cecf03e5b1de409b2c8fabf4355157c5e97b5.zip
kernel: IdString:in() to use perfect forwarding
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.h4
1 files changed, 2 insertions, 2 deletions
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<typename T, typename... Args>
- 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<Args>(rest)...);
}
bool in(IdString rhs) const { return *this == rhs; }