aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rtlil.h')
-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; }