diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-06 04:13:54 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-06 04:13:54 -0600 |
commit | 488355e5d92923e1d764625457b866f4fc83d58b (patch) | |
tree | 39d2704f1e926d07893b9ab85a4e9c495dab4fdf /src/scope.h | |
parent | 4a93a8313e76c9a90e56180357792ec44a690cd2 (diff) | |
download | fork-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.h | 3 |
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: |