From 4a8cecf03e5b1de409b2c8fabf4355157c5e97b5 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 12 Mar 2020 14:41:27 -0700 Subject: [PATCH] kernel: IdString:in() to use perfect forwarding --- kernel/rtlil.h | 4 ++-- 1 file 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 - 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; } -- 2.30.2