mirror of https://github.com/YosysHQ/yosys.git
Make in() variadic operator take parameters by reference so we don't copy IdStrings
Template argument deduction strips references.
This commit is contained in:
parent
54a258f854
commit
b2ccfb2d0e
|
|
@ -411,7 +411,7 @@ struct RTLIL::IdString
|
||||||
// often one needs to check if a given IdString is part of a list (for example a list
|
// often one needs to check if a given IdString is part of a list (for example a list
|
||||||
// of cell types). the following functions helps with that.
|
// of cell types). the following functions helps with that.
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
bool in(Args... args) const {
|
bool in(const Args &... args) const {
|
||||||
return (... || in(args));
|
return (... || in(args));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue