Fixing regression due to IDStrings
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
da33da5bc2
commit
330d393c59
@ -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; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user