From 488355e5d92923e1d764625457b866f4fc83d58b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 6 Mar 2012 04:13:54 -0600 Subject: Added symbol_t::operator==() --- src/scope.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/scope.h') 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: -- cgit v1.2.3