Fixing regression due to IDStrings

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-06-12 16:04:02 +02:00
parent da33da5bc2
commit 330d393c59

View File

@ -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; }
};