# # # patch "ChangeLog" # from [2e2a8c028a362b9d8ff98207b8e500136e92b2c4] # to [2c145aa72d0af89c971e8ff3f5f9a62d3cb4a72b] # # patch "vocab_macros.hh" # from [9a2cbe362da02a7052e3e8d46153d8eeb535e9db] # to [c80d10b6ae90fb581c2e86cb989a3262b566cabc] # ============================================================ --- ChangeLog 2e2a8c028a362b9d8ff98207b8e500136e92b2c4 +++ ChangeLog 2c145aa72d0af89c971e8ff3f5f9a62d3cb4a72b @@ -1,3 +1,7 @@ +2007-02-07 Lapo Luchini + + * vocab_macros.hh: added operator!=() to 'enc' and 'dec'. + 2007-02-07 Derek Scherger * commands.cc: ============================================================ --- vocab_macros.hh 9a2cbe362da02a7052e3e8d46153d8eeb535e9db +++ vocab_macros.hh c80d10b6ae90fb581c2e86cb989a3262b566cabc @@ -30,6 +30,8 @@ public: operator=(enc const & other); \ bool operator==(enc const & x) const \ { return i() == x(); } \ + bool operator!=(enc const & x) const \ + { return !(i() == x()); } \ friend std::ostream & operator<< <>(std::ostream &, \ enc const &); \ }; @@ -64,6 +66,8 @@ public: operator=(dec const & other); \ bool operator==(dec const & x) const \ { return i == x.i; } \ + bool operator!=(dec const & x) const \ + { return !(i == x.i); } \ friend std::ostream & operator<< <>(std::ostream &, \ dec const &); \ };