diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-03-12 14:41:27 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-04-02 07:14:08 -0700 |
commit | 4a8cecf03e5b1de409b2c8fabf4355157c5e97b5 (patch) | |
tree | 3c5a54f7f880a7524dfca8acd083bf473fd81bbf | |
parent | fdafb74eb77e33e9fa2b4e591804d1d02c122ff9 (diff) | |
download | yosys-4a8cecf03e5b1de409b2c8fabf4355157c5e97b5.tar.gz yosys-4a8cecf03e5b1de409b2c8fabf4355157c5e97b5.tar.bz2 yosys-4a8cecf03e5b1de409b2c8fabf4355157c5e97b5.zip |
kernel: IdString:in() to use perfect forwarding
-rw-r--r-- | kernel/rtlil.h | 4 |
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; } |