From 330d393c59f331178865ce34b68d654766d36289 Mon Sep 17 00:00:00 2001 From: David Shah Date: Tue, 12 Jun 2018 16:04:02 +0200 Subject: Fixing regression due to IDStrings Signed-off-by: David Shah --- common/nextpnr.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/nextpnr.h b/common/nextpnr.h index d1314c27..8acb1554 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -98,6 +98,13 @@ struct IdString bool operator==(const std::string &s) const { return str() == s; } bool operator==(const char *s) const { return str() == s; } + bool operator!=(const IdString &other) const + { + return index != other.index; + } + bool operator!=(const std::string &s) const { return str() != s; } + bool operator!=(const char *s) const { return str() != s; } + size_t size() const { return str().size(); } bool empty() const { return index == 0; } }; -- cgit v1.2.3