Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-17 22:14:24 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-17 22:14:24 +0300
commit563552aea6c6de060ef36788609867ef6bd851fb (patch)
tree9902233443b38d36a8e930efc355a5e58a7f46bc /moses/Word.h
parent0c3fea4014efc8499b0d43fb93d124d27dc9449a (diff)
clean up states after API change
Diffstat (limited to 'moses/Word.h')
-rw-r--r--moses/Word.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/moses/Word.h b/moses/Word.h
index efdebddfa..d82574573 100644
--- a/moses/Word.h
+++ b/moses/Word.h
@@ -124,15 +124,10 @@ public:
return Compare(*this, compare) < 0;
}
- inline bool operator== (const Word &compare) const {
- // needed to store word in GenerationDictionary map
- // uses comparison of FactorKey
- // 'proper' comparison, not address/id comparison
- return Compare(*this, compare) == 0;
- }
+ bool operator== (const Word &compare) const;
inline bool operator!= (const Word &compare) const {
- return Compare(*this, compare) != 0;
+ return !(*this == compare);
}
int Compare(const Word &other) const {