diff options
-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: |