summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-12-31 22:50:08 +0100
committerClifford Wolf <clifford@clifford.at>2014-12-31 22:50:08 +0100
commit327a5d42b6b396f1c210f1579d03a0806a261d84 (patch)
tree3dccfbc3210620fe6de621e2b28db8788e563536 /kernel/rtlil.h
parent94e6b70736934bd8ebb09c7cc74cfd443bd1d9eb (diff)
Progress in memory_bram
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index c40af88a..7618780b 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -250,14 +250,14 @@ namespace RTLIL
// of cell types). the following functions helps with that.
template<typename T, typename... Args>
- bool in(T first, Args... rest) {
+ bool in(T first, Args... rest) const {
return in(first) || in(rest...);
}
- bool in(IdString rhs) { return *this == rhs; }
- bool in(const char *rhs) { return *this == rhs; }
- bool in(const std::string &rhs) { return *this == rhs; }
- bool in(const pool<IdString> &rhs) { return rhs.count(*this) != 0; }
+ bool in(IdString rhs) const { return *this == rhs; }
+ bool in(const char *rhs) const { return *this == rhs; }
+ bool in(const std::string &rhs) const { return *this == rhs; }
+ bool in(const pool<IdString> &rhs) const { return rhs.count(*this) != 0; }
};
static inline std::string escape_id(std::string str) {