diff options
-rw-r--r-- | moses/RuleCube.h | 2 | ||||
-rw-r--r-- | moses/RuleCubeItem.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/moses/RuleCube.h b/moses/RuleCube.h index 409bdadf6..e430fc967 100644 --- a/moses/RuleCube.h +++ b/moses/RuleCube.h @@ -70,7 +70,7 @@ public: size_t operator()(const RuleCubeItem *p) const { size_t seed = 0; boost::hash_combine(seed, p->GetHypothesisDimensions()); - boost::hash_combine(seed, p->GetTranslationDimension().GetTranslationOption()); + boost::hash_combine(seed, p->GetTranslationDimension().GetTranslationOption().get()); return seed; } }; diff --git a/moses/RuleCubeItem.h b/moses/RuleCubeItem.h index 0abc905f7..3e687d194 100644 --- a/moses/RuleCubeItem.h +++ b/moses/RuleCubeItem.h @@ -53,7 +53,7 @@ public: return m_pos+1 < m_orderedTargetPhrases.size(); } - const boost::shared_ptr<ChartTranslationOption> &GetTranslationOption() const { + const boost::shared_ptr<ChartTranslationOption> GetTranslationOption() const { return m_orderedTargetPhrases[m_pos]; } |