diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-17 22:14:24 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-17 22:14:24 +0300 |
commit | 563552aea6c6de060ef36788609867ef6bd851fb (patch) | |
tree | 9902233443b38d36a8e930efc355a5e58a7f46bc /moses/Phrase.h | |
parent | 0c3fea4014efc8499b0d43fb93d124d27dc9449a (diff) |
clean up states after API change
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r-- | moses/Phrase.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/Phrase.h b/moses/Phrase.h index 947e50905..a3d58f5d8 100644 --- a/moses/Phrase.h +++ b/moses/Phrase.h @@ -192,8 +192,10 @@ public: return Compare(compare) < 0; } - bool operator== (const Phrase &compare) const { - return Compare(compare) == 0; + bool operator==(const Phrase &compare) const; + bool operator!=(const Phrase &compare) const + { + return ! (*this == compare); } void OnlyTheseFactors(const FactorMask &factors); |