summaryrefslogtreecommitdiff
path: root/src/scope.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-06 04:13:54 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-06 04:13:54 -0600
commit488355e5d92923e1d764625457b866f4fc83d58b (patch)
tree39d2704f1e926d07893b9ab85a4e9c495dab4fdf /src/scope.h
parent4a93a8313e76c9a90e56180357792ec44a690cd2 (diff)
downloadfork-ledger-488355e5d92923e1d764625457b866f4fc83d58b.tar.gz
fork-ledger-488355e5d92923e1d764625457b866f4fc83d58b.tar.bz2
fork-ledger-488355e5d92923e1d764625457b866f4fc83d58b.zip
Added symbol_t::operator==()
Diffstat (limited to 'src/scope.h')
-rw-r--r--src/scope.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scope.h b/src/scope.h
index 4a22c366..e5127dbd 100644
--- a/src/scope.h
+++ b/src/scope.h
@@ -80,6 +80,9 @@ struct symbol_t
bool operator<(const symbol_t& sym) const {
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)
private: