Added symbol_t::operator==()
This commit is contained in:
parent
4a93a8313e
commit
488355e5d9
1 changed files with 3 additions and 0 deletions
|
|
@ -80,6 +80,9 @@ struct symbol_t
|
||||||
bool operator<(const symbol_t& sym) const {
|
bool operator<(const symbol_t& sym) const {
|
||||||
return kind < sym.kind || name < sym.name;
|
return kind < sym.kind || name < sym.name;
|
||||||
}
|
}
|
||||||
|
bool operator==(const symbol_t& sym) const {
|
||||||
|
return kind == sym.kind || name == sym.name;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(HAVE_BOOST_SERIALIZATION)
|
#if defined(HAVE_BOOST_SERIALIZATION)
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue